07-14-2008 10:47 AM
Quote from previous forum:
|How can I detect that the data service is turned off or suspended when the network is still up. The case can be created by going to "Manage Connections" on the home screen,leave the "Mobile Network" checked- Select Network Options, then turn off "Data Services".|
I am using RadioInfo.isDataServiceOperational() and
RadioInfo.isDataServiceSuspended(), but none of them is returning the correct value.
Am I using the wrong API? If so, what should I use to detect that the "Data Services" is off.
08-04-2008 09:33 AM - edited 08-04-2008 09:34 AM
I tried to query different APIs and compare their results in order to conclude. The following is recorded after turning OFF the data services on a GSM SIM-
1) RadioInfo.getActiveWAFs() & RadioInfo.WAF_3GPP returns Non ZERO // 3GPP is Active
2) CoverageInfo.isCoverageSufficient(CARRIER) returns false // Carrier coverage is not Sufficient
3) CoverageInfo.isCoverageSufficient(MDS) returns false // MDS coverage is not Sufficient
I was expecting that the Coverage of Carrier (WAP, Direct TCP) and MDS (BES) is Available, however not used by the device, since it is explicitly turned OFF at the device end. But the result is not similar to what I was expecting. On the other hand, WAF_3GPP was explicitly turned Off, so it shouldn't be reported as Active.
Am I expecting incorrectly or there is some thing wrong with these APIs ?
08-08-2008 02:47 PM
09-09-2008 02:33 PM
In your post in
I can see that you are using
method that cannot be found in public API . Is it still safe to use this unpublished API?
Or, should we use isSerialBypassActive() ? What would be the differnece then?
Also, what kind of values can be passed to isDataRoutable() as serviceUID parameter?
09-09-2008 04:42 PM
07-28-2011 03:34 AM
I found that, RIM does not provide API to turn off data services, so may we have to work around by use PersistentObject to change data services value. May the code like this:
PersistentObject persist = PersistentStore.getPersistentObject( OptionsDataServicesData.ID );
persist.setContents( new OptionsDataServicesData() );
OptionsDataServicesData.ID is a unique long number, example: long MY_DATA_ID = 0x33abf322367f9018L;
but I don't know exactly value. Could someone know value of this ID?