How to check for GPRS before sending data via HttpConnection

I am making one Java ME application. Here I use HttpConnectionto create Connectionwith webservices. I send / receive data using HttpConnection, DataInputStreamand DataOutputStream. But my problem is that how can I check if the GPRS connection is available now or not?

I got an API System.getProperty("com.nokia.mid.networkavailability");to check network availability. But I want to know how to check if GPRS is available or not? Help me regarding this. (I am using Nokia E5 Phone for development).

+3
source share
1 answer

, .

String value = System.getProperty("com.nokia.network.access");

, IAP Info API Java ™ ME. .

+5

All Articles