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.
What mobile network is available and/or active?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: What mobile network is available and/or active?
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.
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.
-
- Posts: 67
- Joined: Fri Jun 12, 2015 9:42 am
Re: What mobile network is available and/or active?
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.
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.