I was having one solution for enabling and disabling data that was working good in API 8 and 10, but that code was not compatible with the ICS, I need a global solution, so that the same code must be compatible from API 8 to till date Android OS versions.
Share
Use the following method. It’ll work with all android versions.
Permissions Required:
UPDATE:
Starting from Android L this works only for System applications