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 must to set call back mHolder.addCallback(this);