In this moment I am developing a Android App. It's Flashlight, this app have a button for turn on and turn off. Now, My the problem is led in samsung ace, It's turn on only 5 sec. But I found in other post the possible solution: flash light not enabling in samsung mobile
AutoFocusCallback autoFocusCallback = new AutoFocusCallback();
autoFocusCallback.setHandler(handler, message);
but I don't know what is handler object and message object. thanks for you help.