02-11-2011 01:56 AM
I'm trying to detect the event of someone switching data services on/off from the options --> mobile network menu.
I've had limited success with RadioStatusListener and the pdpStateChange event. (It fires on some phones/OS's)
I think I'm able to detect most other ways you might lose/gain your data service but this one seems like my white whale.
I use BB OS's 4.5 and up.
Thanks in advance for any help.
Solved! Go to Solution.
02-14-2011 10:29 AM
08-09-2011 03:13 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?