Quantcast
Channel: Adobe Community : Popular Discussions - Archived Discussions
Viewing all articles
Browse latest Browse all 21156

Detect wireless Internet connection in AIR application

$
0
0

Hi All,

 

I am facing challenges to determine whether Internet connection is available over a Wireless connection. Even if I am connected, I get the status as Not Connected.

 

However the same is working absolutely find when I am connected to Wired network.

 

Can any one advice how should I proceed?

 

I am using the below code for tracking network connection:

 

     //check for network availability
     NativeApplication.nativeApplication.addEventListener(Event.NETWORK_CHANGE, onNetworkChange);
              
    monitor = new URLMonitor(new URLRequest('http://www.google.co.in'));
    monitor.addEventListener(StatusEvent.STATUS, announceStatus);
    monitor.start();
              
    requestLoader.addEventListener(Event.COMPLETE, requestCompleteHandler);
    requestLoader.addEventListener(IOErrorEvent.IO_ERROR, requestErrorHandler);              
    requestLoader.load(request);
    requestLoader.addEventListener(Event.COMPLETE, setInitStatusMsg);

 

The corresponding methods have been set to set the boolean flag.

 

Thanks,

Hitesh Patel.


Viewing all articles
Browse latest Browse all 21156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>