if you didnt release it you cant use it again..Try to take picture..İf you camera is using by other process camera also can't use it..
2011/10/8, Android2ee <[email protected]>: > Hello, > There is a guy who contact me about the Android FlashLight, he wants > to set it on and off without having to use the camera. > His code: > public static booleanFlashOff() > { > import android.hardware.Camera; > import android.hardware.Camera.Parameters; > > Camera mCamera; > Parameters mParameters; > > mCamera = Camera.open(); > > mParameters = mCamera.getParameters(); > mParameters.setFlashMode(Camera.Parameters.FLASH_MODE_OFF); > mCamera.setParameters(mParameters); > > // mCamera.release(); > > return true; > } > > I never try to set the flash mode, so i will have a look but if one of > you already knows the solution, it's cool. > (His problem is that the camera.open throws an exceeption because its > camera is used by another process (don't ask me why:o). > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

