Re[4]: Network Reachability

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re[4]: Network Reachability

Chris Rounds
The native extension approach is the only method I have found to work. I have not tried using it on windows phone yet, though I suspect since it is built on AIR2 it may not be supported. A call to isSupported property should determine if the device is supported or not and if true you can use findInterfaces to see what is returned (if anything) from a windows phone. 


--
Chris Rounds



-----Original Message-----

> From: "Philippe Bossu" <[hidden email]>
> To: [hidden email]
> Date: 02/01/13 09:32
> Subject: Re: Re[2]: Network Reachability
>
> Thank you very much, so this means it can't be done without native
> extension ?
>
> For android I would have to develop a native extension based on this kind
> of code:
> -
> http://www.gubatron.com/blog/2010/09/19/android-programming-how-to-obtain-the-wifis-corresponding-networkinterface/(
> http://developer.android.com/reference/android/net/wifi/WifiManager.html )
>
> Finally for Windows, is there a way to do so ?
> -
> http://stackoverflow.com/questions/5325627/how-can-i-check-for-3g-wifi-edge-cellular-networks-in-windows-phone-7
>
>
> Regards
>
>
> On Fri, Feb 1, 2013 at 3:29 PM, Chris Rounds <[hidden email]> wrote:
>
> > Have you tried using NetworkInfo Class? Similar to...
> > http://stackoverflow.com/questions/9872348/adobe-air-detect-if-connection-is-wifi-3g-or-edge
> >
> >
> > --
> > Chris Rounds
> >
> >
> >
> > -----Original Message-----
> > > From: "Philippe Bossu" <[hidden email]>
> > > To: [hidden email]
> > > Date: 02/01/13 08:18
> > > Subject: Re: Network Reachability
> > >
> > > Thank you but my issue is I want to detect WIFI availability not just
> > > network.
> > >
> > > This is to ensure:
> > >
> > >    - I don't consume 3G bandwidth
> > >    - I have enough bandwidth (which I maybe could do through network
> > test)
> > >
> > >
> > > Regards
> > >
> > >
> > >
> > > On Fri, Feb 1, 2013 at 3:14 PM, Fréderic Cox <[hidden email]>
> > wrote:
> > >
> > > > How I solve this problem is I have a 1kb file on Amazon S3 which I ping
> > > > via HTTPService in Flex (or you can use URLLoader in AS)
> > > >
> > > > Fréderic Cox
> > > >
> > > >
> > > >
> > > >
> > > > On 01/02/13 15:11, "Philippe Bossu" <[hidden email]> wrote:
> > > >
> > > > >Hello,
> > > > >I would like to know if there is an equivalent of iOS Reachability
> > class
> > > > >in
> > > > >ActionScript.
> > > > >
> > > > >I read this but I don't see how to test for WIFI access.
> > > > >-
> > > > >
> > > >
> > http://stackoverflow.com/questions/7999454/is-there-an-equivalent-of-the-r
> > > > >eachability-class-for-actionscript-3
> > > > >
> > > > >Thanks for your help.
> > > > >And nice new Flex website by the way.
> > > > >
> > > > >Regards
> > > >
> > > >
> > > >
> >
> >
> >
> >




Reply | Threaded
Open this post in threaded view
|

Re: Re[4]: Network Reachability

Philippe Bossu
Great thanks for your answers

On Fri, Feb 1, 2013 at 5:17 PM, Chris Rounds <[hidden email]> wrote:

> The native extension approach is the only method I have found to work. I
> have not tried using it on windows phone yet, though I suspect since it is
> built on AIR2 it may not be supported. A call to isSupported property
> should determine if the device is supported or not and if true you can use
> findInterfaces to see what is returned (if anything) from a windows phone.
>
>
> --
> Chris Rounds
>
>
>
> -----Original Message-----
> > From: "Philippe Bossu" <[hidden email]>
> > To: [hidden email]
> > Date: 02/01/13 09:32
> > Subject: Re: Re[2]: Network Reachability
> >
> > Thank you very much, so this means it can't be done without native
> > extension ?
> >
> > For android I would have to develop a native extension based on this kind
> > of code:
> > -
> >
> http://www.gubatron.com/blog/2010/09/19/android-programming-how-to-obtain-the-wifis-corresponding-networkinterface/(
> > http://developer.android.com/reference/android/net/wifi/WifiManager.html)
> >
> > Finally for Windows, is there a way to do so ?
> > -
> >
> http://stackoverflow.com/questions/5325627/how-can-i-check-for-3g-wifi-edge-cellular-networks-in-windows-phone-7
> >
> >
> > Regards
> >
> >
> > On Fri, Feb 1, 2013 at 3:29 PM, Chris Rounds <[hidden email]>
> wrote:
> >
> > > Have you tried using NetworkInfo Class? Similar to...
> > >
> http://stackoverflow.com/questions/9872348/adobe-air-detect-if-connection-is-wifi-3g-or-edge
> > >
> > >
> > > --
> > > Chris Rounds
> > >
> > >
> > >
> > > -----Original Message-----
> > > > From: "Philippe Bossu" <[hidden email]>
> > > > To: [hidden email]
> > > > Date: 02/01/13 08:18
> > > > Subject: Re: Network Reachability
> > > >
> > > > Thank you but my issue is I want to detect WIFI availability not just
> > > > network.
> > > >
> > > > This is to ensure:
> > > >
> > > >    - I don't consume 3G bandwidth
> > > >    - I have enough bandwidth (which I maybe could do through network
> > > test)
> > > >
> > > >
> > > > Regards
> > > >
> > > >
> > > >
> > > > On Fri, Feb 1, 2013 at 3:14 PM, Fréderic Cox <[hidden email]>
> > > wrote:
> > > >
> > > > > How I solve this problem is I have a 1kb file on Amazon S3 which I
> ping
> > > > > via HTTPService in Flex (or you can use URLLoader in AS)
> > > > >
> > > > > Fréderic Cox
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On 01/02/13 15:11, "Philippe Bossu" <[hidden email]> wrote:
> > > > >
> > > > > >Hello,
> > > > > >I would like to know if there is an equivalent of iOS Reachability
> > > class
> > > > > >in
> > > > > >ActionScript.
> > > > > >
> > > > > >I read this but I don't see how to test for WIFI access.
> > > > > >-
> > > > > >
> > > > >
> > >
> http://stackoverflow.com/questions/7999454/is-there-an-equivalent-of-the-r
> > > > > >eachability-class-for-actionscript-3
> > > > > >
> > > > > >Thanks for your help.
> > > > > >And nice new Flex website by the way.
> > > > > >
> > > > > >Regards
> > > > >
> > > > >
> > > > >
> > >
> > >
> > >
> > >
>
>
>
>