How to check availability of internet connection(Wifi, GPRS, EDGE) in Blackberry.
Asked
Active
Viewed 915 times
1 Answers
4
Try this....it worked for me .
protected static boolean isInternetAvailable() {
boolean flag = false;
if(WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED){
flag = true;
}
else if(RadioInfo.isDataServiceOperational()){
flag = true;
}
return flag;
}

Shishir Shetty
- 2,021
- 3
- 20
- 35