XverhelstX Well-Known Member Licensed User Longtime User Aug 29, 2011 #1 Hello everyone, I need to check if the phone has a current working internet connection. So if the phone is connected with the internet whether it is with EDGE, 3G or wifi. I need it for my trial library otherwise I receive an error. Thank you XverhelstX
Hello everyone, I need to check if the phone has a current working internet connection. So if the phone is connected with the internet whether it is with EDGE, 3G or wifi. I need it for my trial library otherwise I receive an error. Thank you XverhelstX
margret Well-Known Member Licensed User Longtime User Aug 29, 2011 #2 Check for WiFi I use this code and it works fine for me. It does not work on the simulator but it works fine on the device. It uses the ABWiFi library: B4X: Sub CheckForWiFi If MyLan.GetMyIP = "127.0.0.1" Then Return False Else Return True End If End Sub Margret Upvote 0
Check for WiFi I use this code and it works fine for me. It does not work on the simulator but it works fine on the device. It uses the ABWiFi library: B4X: Sub CheckForWiFi If MyLan.GetMyIP = "127.0.0.1" Then Return False Else Return True End If End Sub Margret
Erel B4X founder Staff member Licensed User Longtime User Dec 30, 2013 #3 This is an old thread. It is better to start a new thread. See this discussion: http://www.b4x.com/android/forum/threads/check-internet-connection.27653/#post-165750 Upvote 0
This is an old thread. It is better to start a new thread. See this discussion: http://www.b4x.com/android/forum/threads/check-internet-connection.27653/#post-165750