I'm using httpjob to download google from internet and check that way if I have a working internet connection.
The problem is that I need to set the httpjob's timeout to 1 second. Now I'm getting 5 to 10 seconds where my app can't determine if there is internet or not because its waiting for the httpjob response.
The best way to check to see if you have an internet connection is to do the following.
Check/Tick Network library.
B4X:
Dim Server As ServerSocket
Server.Initialize(0, "")
If Server.GetMyIP = "127.0.0.1" Then
'You have no internet, re-run again using timer or something.
Else
'You have internet
End if