Welcome!

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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Contributor
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!

Developer
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!
Developer
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.

Highlighted
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.