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"
 

SMOOTSARA

Active Member
Licensed User
Longtime User
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

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
You could try this as an example.


There are plenty of other examples in the forum for more specific cases.
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…