I want to Enable/Disable 3G and other Data connections separately.Is it possible to access 3G individually?That means if the user selects the option 3G, then Enable/Disable 3G data connection only.And if the user selects the option Data Services, enable/disable data connections except 3G.Is it possible?
I tried the following methods
enableDataConnectivity();
and
disableDataConnectivity();
of
TelephonyManager
But i think these methods turn off/on all data services in whole.I want to access 3G separately.
How to do this?
This code sample should work for android phones running gingerbread and higher:
This also requires the following permission.