Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 16
Registered: ‎01-06-2013
My Device: BlackBerry 10 - Z10 LE
My Carrier: Optus

BB10 Dev Alpha Camera Flahlight

Hi Guys,


Does any one know what is the minimun battery level threshold in order to turn on the flashlight on the camera?


Also how to calibrate the compass on the BB10  device? is there any API for us to do it within the native/QML codes? 


Thanks a lot!

Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: BB10 Dev Alpha Camera Flahlight

No idea about the flash.

The compass auto-calibrates with some super-fancy and probably patented techniques that RIM developed, so I suspect there's not even an API to do that any more. I haven't checked it out in the latest SDK, however.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Posts: 368
Registered: ‎06-30-2012
My Device: Playbook, Z10LE, DevAlpha C
My Carrier: Telenor, Mobitel

Re: BB10 Dev Alpha Camera Flahlight

If you have DevAlpha A and Gold release software, forget about flash, it is not working.

BlackBerry Development Advisor
Posts: 683
Registered: ‎11-29-2011
My Device: PRIV
My Carrier: Rogers

Re: BB10 Dev Alpha Camera Flahlight

well, the photo-flash is definitely disabled, but the videolight may still be working.. I have not confirmed.  There was a hardware bug which meant I had to disable flash when taking pictures, but it may also have impacted videolight.


as for battery level.. the limit is set by hardware, so I'm not sure what the threshold is.. it's probably down below 5% somewhere.