Android Question Internet connection control in B4X

SMOOTSARA

Active Member
Licensed User
Longtime User
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"
 
The best way is to not check it at all. Make the request needed and if it fails, show the relevant information to the user.
Thank you ?

Can you guide me with the coding for b4x (that runs on all platforms) .

?
 
Upvote 0
You could try this as an example.


There are plenty of other examples in the forum for more specific cases.
 
Upvote 0
Can you guide me with the coding for b4x (that runs on all platforms) .
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.

So, the code depends on what you're trying to do.
 
Upvote 0
Back
Top