0

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.

Community
  • 1
  • 1
Lisa
  • 1
  • 1

1 Answers1

1

You can find a nice description of what Handlers are in the Android SDK | Handlers.

Basically, you give the callback a handler which will handle autoFocus messages when they get placed in the queue by the camera firmware.

dcow
  • 7,765
  • 3
  • 45
  • 65