Android Question Check airplane mode status

imgsimonebiliato

Well-Known Member
Licensed User
Hello,
how can I check if airplane mode is ON/OFF?
 

imgsimonebiliato

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

Cableguy

Expert
Licensed 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!
 

imgsimonebiliato

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

B4X:
Dim p As Phone
Return p.IsAirplaneModeOn
bye
 
Top