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
Highlighted
New Developer
Posts: 2
Registered: ‎10-10-2013
My Device: Z10
My Carrier: Rogers

how to check airplane mode ON/OFF

Hi,

 

I am looking for an API to check the status of Airplane mode.

Can you please help me to check Airplane mode ON/OFF status in Blackberry 10 native?

 

Thanks,

Devendra

Retired
Posts: 85
Registered: ‎05-25-2012
My Device: Limited Edition Z10
My Carrier: Bell

Re: how to check airplane mode ON/OFF

There is no API for checking Airplane Mode.

 

You can bring up the settings that displays Airplane Mode in a card:

 

https://developer.blackberry.com/native/documentation/cascades/device_platform/invocation/settings.h...

 

And you can detect the Network Settings to see if the user has network access:

 

https://developer.blackberry.com/native/articles/networking_101/

Developer
Posts: 1,632
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Re: how to check airplane mode ON/OFF

Will turn on and off airplane mode ever going to be possible?

Retired
Posts: 85
Registered: ‎05-25-2012
My Device: Limited Edition Z10
My Carrier: Bell

Re: how to check airplane mode ON/OFF

You can submit feature requests here:

 

https://www.blackberry.com/jira

 

Note that being able to programatically CHECK airplane mode, and SET airplane mode are different.  If you need both features make sure to specify that in the feature request.

New Developer
Posts: 6
Registered: ‎11-13-2014
My Device: Z10
My Carrier: Personal

Re: how to check airplane mode ON/OFF

Anyone has solved yet how to detect a change On/Off in AirplaneMode ?. I'd appreciate it! Thanks!