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?
 

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
I used it.
I founded posts dated 2011.
Surely there is something more updated.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
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

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Why use these old codes?
I found this:

B4X:
Dim p As Phone
Return p.IsAirplaneModeOn

bye
 
Upvote 0
Top