tags:

views:

299

answers:

1

Trying to activate the LED to use as a flashlight on the HTC EVO 4G. I know this is possible because there at least a couple applications in the Android Market (LED Desire Light, Tesla) that do this.

I've tried using setFlashlightEnabled, which I'm told works on the Droid. On my Nexus One with Froyo I used setFlashMode to set the mode to FLASH_MODE_TORCH, which works fine. But I can't figure out how to get the same effect on the HTC EVO 4G.

+1  A: 

Found an open source app that works: http://code.google.com/p/quick-settings/source/browse/#svn/trunk/quick-settings/src/com/bwx/bequick/flashlight

Guessing it is HtcLedFlashlight.java in that package that does the magic for the EVO.

Rohan Singh