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

Reply
Contributor
renjini
Posts: 24
Registered: ‎11-05-2012
My Device: BB10
My Carrier: Airtel

how to put flash light continuously when device back light is off?

Hi,

 

   is there any way to put flash light continuously when device back light is off?  I able to on the flash light in camera video mode. but it will off when device back light is off.

 

thanks and regards

renjini. 

Please use plain text.
BlackBerry Development Advisor
smcveigh
Posts: 668
Registered: ‎11-29-2011
My Device: developer
My Carrier: other

Re: how to put flash light continuously when device back light is off?

the camera hardware goes into shutdown when the device enters standby mode.

you cannot avoid this presently.

 

your best bet would be to apply one of the window keepalive settings to your application window. (eg. set SCREEN_PROPERTY_IDLE_MODE to SCREEN_IDLE_MODE_KEEP_AWAKE)

 

Search around the forums for how to do this, as it varies between libscreen, cascades, air, etc.

 

Cheers,

Sean

Please use plain text.