Android Question Phone Library issue on Galaxy S4

walterf25

Expert
Licensed User
Longtime User
Hello Erel, i'm puzzled at an issue i just discovered while testing one of my apps, i need to find out whether the wifi is turned on once the phone reboots and the app is restarted autotmatically, i've added this two lines of code and it crashes my app every time.

B4X:
Dim p As Phone
Log("wifi is on : " & p.GetSettings("wifi_on"))

if i comment those two lines of code and run my app again, it still crashes until i reboot my phone then the app runs normal again.

Would you please look into this, maybe i'm not using it correctly? or is there an issue with the phone library, i have not tried it on another device as i only have one device available at this moment.

Galaxy S4, with 4.4.2 android version

Thanks,
Walter
 

walterf25

Expert
Licensed User
Longtime User
I don't get any error at all, the app just closes.
If i'm not connected to wifi, am I not supposed to get as an ip address "127.0.0.1"?

because i'm getting a totally different IP Adress "29.152.219.102", what the hell is this?

never seen this before, i'm only connected to my 3G network.
 
Upvote 0
Top