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: 64
Registered: ‎02-21-2012
My Device: Blackberry Playbook
My Carrier: None

Message(s) Associated With Switching To Standby

Where would I find out what messages are sent to an open application indicating the tablet is about to enter Standy Mode?

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

Re: Message(s) Associated With Switching To Standby

It appears the AIR SDK has support for this in the form of https://bdsc.webapps.blackberry.com/air/apis/qnx/system/QNXSystemState.html and https://bdsc.webapps.blackberry.com/air/apis/qnx/events/QNXSystemEvent.html.


It's possible this one isn't exposed directly in the NDK yet. There is a PPS object (user_activity) we could monitor, and that's probably the same one the AIR runtime is watching. It's best to avoid direct access to those, however, as they could change in any release and you don't generally want to couple your app to them tightly...


Best is if there is or will be an NDK API to match the one AIR has.

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!