11

In my camera app, I'm triggering an autofocus when the user taps the screen, using this code:

mCamera.autoFocus(null);

I'm also allowing the user to set the camera flash mode in an options screen. The problem is that when triggering an autofocus the camera flash sometimes triggers on some phones, and users are complaining about this. On most of these phones, this can be avoided by setting the flash mode to Parameters.FLASH_MODE_OFF. I have verified this on a Galaxy S2, but on some phones (e.g. Nexus 4) it still happens even then (according to user reports).

How can I reliably prevent the camera flash light turning on when triggering an auto-focus? Is it possible?

Digvijay Singh
  • 623
  • 9
  • 26
samgak
  • 23,944
  • 4
  • 60
  • 82

0 Answers0