06-27-2011 05:21 AM
We are working on an application which will turn off Data services (EDGE/GPRS/3G) when the device is connected to a Wi-Fi network. is there any API to turn off Data services programmatically? Any help in this would be greatly appreciated?
Thanks in advance
06-27-2011 05:38 AM
06-27-2011 05:50 AM
Thanks Simon for you reply.
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 without disconnecting from the Mobile Network, so that user can recieve calls.
07-19-2011 12:31 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?