How to enable mobile data on/off programmatically
You cannot access mobile data on / off programmaticaly above android 4.4 .It have been made stopped for security reasons ,instead you can ask the user using a dialog to enable the mobile data and then if he enable you can do your task.
Disable/Enabling mobile data programmatically in Android
I am trying to enable/disable mobile data.
First, is it possible to implement this?
No, that's not possible to achieve by third-party apps. Enabling/disabling mobile data should be done through system Settings app UI.
What you can do is to provide an instruction to end user on how to enable/disable mobile data and direct them to Settings app.
Related Topics
Android Studio Does Not Show Layout Preview
How to Create a Circular Progressbar in Android Which Rotates on It
Android Spinner with Multiple Choice
Listview Click to Show Image in Imageview
Android: Remove Notification from Notification Bar
Connecting to MySQL from Android with Jdbc
Android 4.3 Menu Item Showasaction="Always" Ignored
Data Sharing Between Two Applications
Difference Between Service, Async Task & Thread
Alertdialog.Builder with Custom Layout and Edittext; Cannot Access View
Get Referrer After Installing App from Android Market
Change Project Name on Android Studio
How to Capture the Android Device Screen Content
The Completest Cocos2D-X Tutorial & Guide List
Android Studio: Gradle - Build Fails -- Execution Failed for Task ':Dexdebug'