Hi guys ?
What is the best way to "control the device internet connection" in B4X?
This method must include any connection and if device connect to the Internet, return it to us "true"
Downloading resources is simpler with the new Resumable Subs feature. Using Wait For we can wait for the JobDone event in the same sub that started the download. No longer is it needed to have a single sub that handles all requests results. Simplest example: Dim j As HttpJob j.Initialize(""...
www.b4x.com
There are plenty of other examples in the forum for more specific cases.
He means that you should try whatever you want to do over the internet (update the database?, login?, get a website?), if you get an error connecting, show a message saying "Error, no connection"or something like that.