1

Possible Duplicate:
How turn on camera flash light programmatically in Android?

so how do you turn on the camera's "flash" LED in Android? (like flashlight apps) - and is it possible to vary the brightness?

search results for "android flash" too polluted by adobe flash :(

Community
  • 1
  • 1
OJW
  • 4,514
  • 6
  • 40
  • 48
  • "Too polluted" results weren't helped by your title that I've edited, nor your summary ;) – Christopher Orr Sep 21 '10 at 20:26
  • Check out [Camera.Parameters](http://developer.android.com/reference/android/hardware/Camera.Parameters.html) and have a look at FLASH_MODE_TORCH I've also seen [a dodgy script](http://androidforums.com/incredible-all-things-root/102849-turn-camera-flash-led-off.html) that might point you in some directions. – Michael Paulukonis Sep 21 '10 at 21:16
  • Looks good. For some reason it crashes trying to turn flash off in onPause but I can work on that. Any idea about varying brightnesss? (hope this doesn't involve driving it with PWM!) – OJW Sep 22 '10 at 20:57

1 Answers1

1

check this topic, will help a lot.

How to turn on camera flash light programmatically in Android?

Community
  • 1
  • 1
LuizAurio
  • 157
  • 1
  • 7