Android Question Phone.GetSettings ("wifi_on") always return 0

Cableguy

Expert
Licensed User
Longtime User
Hi... I am trying to do a simple wifi status check, but it always returns me 0.

My code is the simplest:

B4X:
dim p as phone
dim wifi_state as int
wifi_state = p.GetSettings ("wifi_on")

I connect my REAL device through B4A Bridge by WIFI... so it should read 1, right?
Also testing p.GetDataState gives me 0.. on two different phones
 
Last edited:

Cableguy

Expert
Licensed User
Longtime User
LoL... just comming back from it, I find you post in my question... and I left a question in your post....
 
Upvote 0
Top