Hi,
I try to make an app that take pictures from camera and then send them to a server by using jHttpClient. I add a jCustomDialog to hold a jCustomCamera, and then add 2 buttons at the bottom which are Take Photo and Cancel. If I cancel the camera by calling jCustomDialog.Close, I notice that the green dot at top right on my phone is still on, indicating that the camera still on, although the jCustomCamera itself is no longer showing.
I tried using jCustomCamera.jFree to stop preview and the green dot gone. But this is certainly not the correct way. I explore the jCustomCamera.java and notice there is stopCameraPreview procedure which calls camera.StopPreview(). Unfortunately jCustomCamera does not have the method like this.
How is the correct way to stop preview the jCustomCamera in LAMW?
Any help would be appreciated, thank you very much.