Possible Duplicate:
Turning on camera flash LED in Android?
I need to turn on the flash LED in my app, and cannot find any simple methods. How would I go abouts doing this? I just need a sample code to turn on the LED. I do not want it to toggle.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Camera parameters can be set to “Torch Mode”, but as you probably know it might not work on all devices/OS versions.
Hope this question helps:
Camera.Parameters.FLASH_MODE_TORCH replacement for Android 2.1