Page 1 of 1

Checking for wi-fi, cell in Android

Posted: Tue Jan 07, 2014 5:04 am
by Dixie
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 ?

Re: Checking for wi-fi, cell in Android

Posted: Tue Jan 07, 2014 4:04 pm
by macnomad2
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.

Re: Checking for wi-fi, cell in Android

Posted: Thu Jan 09, 2014 2:29 am
by Dixie
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.