Checking for wi-fi, cell in Android

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Checking for wi-fi, cell in Android

Post by Dixie » Tue Jan 07, 2014 5:04 am

I have been using iPhoneSetReachability for quite a while now and have come to depend on it when checking for wi-fi connection in iOS apps...

but, I was just starting to change one of my iOS apps into an android flavour when I realised that this is iOS only. So, my question is how are people detecting wi-fi or cell, 3G connections in their liveCode android apps ?

macnomad2
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 63
Joined: Sat Oct 28, 2006 10:04 pm

Re: Checking for wi-fi, cell in Android

Post by macnomad2 » Tue Jan 07, 2014 4:04 pm

It depends why you need Internet access.
For example, I just add statements like that before needing a real access
- put URL "http://a.page.you.know.exists" into temp1
- put the result into temp2
and then you analyze temp2 to detect errors...
But it may not work for you.

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Checking for wi-fi, cell in Android

Post by Dixie » Thu Jan 09, 2014 2:29 am

macnomad2...

Thanks for the reply... What you have outlined is what I had thought was going to be the only way around this problem on android using liveCode at the moment. It would be nice to be able to differentiate between a wi-fi or 3G conection.

Post Reply