API call to find out if there is an Internet connection?

Is there some API call in AIR or the libraries of the Playbook with which I can determine if there is a live internet connection? I would like to know when the user is on any of the Wifi / 3G / 4G (that is, any type of connectivity) so my application can try asking in the data row instead of using local cache.

Thank you!

alinium wrote:

Is there some API call in AIR or the libraries of the Playbook with which I can determine if there is a live internet connection?

There are a few pages out there with examples:

air.net.URLMonitor: http://livedocs.adobe.com/flex/3/html/help.html?content=network_connectivity_1.html

above video tutorial using the API call: http://tv.adobe.com/watch/adc-presents/detecting-network-connectivity-in-your-adobe-air-application/

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for