After stop camera service, the camera does not work anymore.

Posted by Cristian Castiblanco on Stack Overflow See other posts from Stack Overflow or by Cristian Castiblanco
Published on 2010-06-01T22:50:56Z Indexed on 2010/06/01 22:53 UTC
Read the original article Hit count: 174

Filed under:
|
|

Is there any way to correctly stop the camera service? This does not seem to work:

public void surfaceDestroyed(SurfaceHolder holder){
    camera.stopPreview();
    camera = null;
}

After doing that the camera does not work, even if I use the program that is preinstalled in my handset.

© Stack Overflow or respective owner

Related posts about android

Related posts about android-sdk