This is for WiFi. When we're not connected to WiFi, I send a request to a stable link (up, most of the time at least) for e.g. google.com. If I get a success, I assume we are connected using our 4G.
Sorry, Makis.
I haven't use B4A for a few years (doing everything in B4J and ABMaterial these days).
The code above is from one of my last projects in B4A, where I checked that a connection was present. I have no clue about how you could check specifically for 4G data connection.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.