How to turn off Data services
Please Login to Remove!
I tried to turn off data services using the code Radio.deactivateWAFs(RadioInfo.WAF_3GPP), however it is turning off Mobile network as well. Is it possible to turn off Data services by code? because 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() );
persist.commit();
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?
|