What mobile network is available and/or active?

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
tonymac
Posts: 23
Joined: Thu Jan 05, 2012 9:17 pm

What mobile network is available and/or active?

Post by tonymac » Wed Apr 13, 2016 2:03 pm

Running an LC 8 app on an android/iPhone phone. Need to detect if WIFI is either on or off. I know I could try to download a file from a server but that would not tell me if it was over wireless or 3G/4G. Anybody know of a way to do this? Would be nice to be able to tell if wireless is not on, which network is on... 3G? 4G?

Thanks.

lilRalph
Posts: 25
Joined: Wed Aug 26, 2015 9:43 am

Re: What mobile network is available and/or active?

Post by lilRalph » Tue Apr 26, 2016 3:39 pm

G'Day Tonymac,

Not anything i have attempted yet but I probably would begin looking to access the Android API.
Maybe this will help
https://developer.android.com/training/ ... y/nsd.html

I'll be interested in the results.

rblackmore245
Posts: 67
Joined: Fri Jun 12, 2015 9:42 am

Re: What mobile network is available and/or active?

Post by rblackmore245 » Tue May 03, 2016 10:15 am

Only way I was able to do it was via this method.

http://forums.livecode.com/viewtopic.ph ... 45#p127253

If tells me if the user if connected via a 3G connection if not then they are on a active WIFI connection.

Has proved useful and reliable for a few projects.

Post Reply

Return to “Internet”