View Single Post
Old 10-24-2007, 06:28 AM   #1 (permalink)
Thomas Shek
New Member
 
Join Date: Sep 2007
Model: 8100
PIN: N/A
Carrier: 12345
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default RadioInfo.isDataServiceOperational

Please Login to Remove!

Hi,

From 4.2.0, there is two new method in RadioInfo called isDataServiceOperational() and isDataServiceSuspended().

I have tried to turn off data services in Options -> Mobile Network, but isDataServiceOperational() still return true, and isDataServiceSuspended() still return false.

I would like to know how the setting can be obtained, or is it a way to determine whether the handheld have data service or not... here is my code for 4.2.0 :

return ((RadioInfo.getState()==RadioInfo.STATE_ON) &&
(RadioInfo.getNetworkType() == RadioInfo.NETWORK_GPRS) &&
((RadioInfo.getNetworkService() & RadioInfo.NETWORK_SERVICE_DATA) != 0) &&
(RadioInfo.getSignalLevel()!=RadioInfo.LEVEL_NO_CO VERAGE) &&
(RadioInfo.isDataServiceOperational()) &&
(!RadioInfo.isDataServiceSuspended())
);

It returns true even if there is no SIMCARD inserted, i.e. data service won't be available.

Can anyone point out my problem ??

Thanks
Thomas
Offline   Reply With Quote