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

Java Development

Reply
Contributor
Posts: 43
Registered: ‎11-24-2011
My Device: Perl
My Carrier: BB

how to impliment wakelock -blackberry

Hi,

 

I developed a  functionality for the audio recording on my application which is about 2 min

 

When the user start the record it work fine but the backlight of my screen goes offf after a certain time,

so i need that the backlight shoud never turn off whenever my app is running on the phone

 

can any one know how to implement the wakelock in blackberry

 

Thanks in advanced

 

Highlighted
Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: how to impliment wakelock -blackberry

http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/Backlight.html#enable(b...

you need an extra permission for that, so be sure to request it.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter