Android Question Check airplane mode status

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Hello,
how can I check if airplane mode is ON/OFF?
 
Use the phone lib. You know this forum has a search function. .. you should use it.
 
Upvote 0
I used it.
I founded posts dated 2011.
Surely there is something more updated.
 
Upvote 0
Actually. . No. The base phone lib is a standard lib, meaning it comes with b4a. It is always up to date by the release date.
the methods used in b4a however do not change (much) for retro-compatibility purposes.
Just try those 3 year old examples and you will see they work!
 
Upvote 0
Why use these old codes?
I found this:

Code:
Dim p As Phone
Return p.IsAirplaneModeOn

bye
 
Upvote 0
Why use these old codes?
I found this:

Code:
Dim p As Phone
Return p.IsAirplaneModeOn

bye
They may be old but they work.
In your code you are dimming a phone object!
 
Upvote 0
Back
Top