06-19-2013 03:56 AM
I want to off data service and data roaming programmatically but without closing network. So please help me for this
Thanks & Regards
06-19-2013 07:27 AM
What is the purpose? Do you want your application to avoid connecting when the device is in roaming?
Then probably you should just simply check with RadioInfo.getNetworkService() if it is roaming and then use a proper connection string for WiFi-only connections (append ;deviceside=true;interface=wifi to the connection string).
If your purpose is to really switch connections on/off, then probably Radio.activateWAFs, Radio.deactivateWAFs can do that. So far I have only used these to switch WiFi on and off.
Here is a nice short article about the topic: https://developer.blackberry.com/java/documentatio
06-20-2013 03:20 AM