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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en