mkvidyashankar Active Member Licensed User Longtime User Apr 6, 2011 #1 How to find that the phone is connected to internet or not? i am using b4a and how to catch "Page Not found error" in webview Last edited: Apr 6, 2011
How to find that the phone is connected to internet or not? i am using b4a and how to catch "Page Not found error" in webview
Erel B4X founder Staff member Licensed User Longtime User Apr 6, 2011 #2 You can check the device IP address: Code: Dim server As ServerSocket 'Add a reference to the network library server.Initialize(0, "") If server.GetMyIP = "127.0.0.1" Then 'this is the local host address 'no connection End If Currently no event is raised when there is an error inside WebView. Upvote 0
You can check the device IP address: Code: Dim server As ServerSocket 'Add a reference to the network library server.Initialize(0, "") If server.GetMyIP = "127.0.0.1" Then 'this is the local host address 'no connection End If Currently no event is raised when there is an error inside WebView.
B bluedude Well-Known Member Licensed User Longtime User Apr 6, 2011 #3 I do it differently, checking WIFI or Mobile data status by using the Phone stuff. Seems to be very reliable. Upvote 0
I do it differently, checking WIFI or Mobile data status by using the Phone stuff. Seems to be very reliable.
G-ShadoW Active Member Licensed User Longtime User Jan 19, 2015 #4 bluedude said: I do it differently, checking WIFI or Mobile data status by using the Phone stuff. Seems to be very reliable. Click to expand... Can You show example ? B.R. Upvote 0
bluedude said: I do it differently, checking WIFI or Mobile data status by using the Phone stuff. Seems to be very reliable. Click to expand... Can You show example ? B.R.