views:

59

answers:

1

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 :(

+1  A: 

Check out Camera.Parameters and have a look at FLASH_MODE_TORCH

I've also seen a dodgy script that might point you in some directions.

Michael Paulukonis
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