How to capture the image and save it in sd card
hey guys i am using the following code to access camera from my application. The application is able to access the camera i have also added a button whose onclicklistener adds this line of code :- camera.takePicture(mShutterCallback, mPictureCallbackRaw, mPictureCallbackJpeg); Now i dont know what happens but the application gets stuck i have to force close it and then i can not even access the native camera application. I think it leaves the application without releasing the Camera object. Plus the image never gets saved. Code :- SurfaceHolder holder; SurfaceView surface; Camera camera;