I am developing an app which needs to open the flashlight of my Galaxy Nexus device. I have referred to the post here
LED flashlight on Galaxy Nexus controllable by
You need to add this tag in manifest file.
<uses-feature android:name="android.hardware.camera.flash"/>
you must to set call back mHolder.addCallback(this);
Try to add :
android:name="android.permission.FLASHLIGHT"
android:name="android.hardware.camera.flash
And look this post : How to turn on camera flash light programmatically in Android?