Log in or register to post comments

Turning on Camera's flash

December 21, 2010 - 4:15am #1

Hi there,

I'm new to Android/AR development, and this toolkit looks pretty cool.

I was playing around with the VirtualButtons sample, and wanted to extend it by turning my device's (Nexus 1) built-in led-flash onto Torch mode to help in low-lighting conditions.

After a bit of playing around, I've managed to get the flash to turn on before the JNI call to startCamera(), but if i don't release the camera instance, the native camera interface can't access the camera (i'm guessing), so nothing displays on screen. If i release the camera instance, the light turns off :/

Digging into the native side of things, it looks like the QCAR::CameraDevice, doesn't expose this functionality at all.

Any suggestions on how one could do this?

Cheers,
Xerx

Re: Turning on Camera's flash

December 21, 2010 - 6:24am #2

This probably won't be possible with the current release of the SDK, as the internal library has full ownership of the camera. I will make a feature request, however, and perhaps this functionality can be added to a later version.

- Kim

Log in or register to post comments