This Widget toggles Mobile Data between On and Off. The icon changes between Green and Red to indicate the current mobile data state.


In addition to responding to taps on the icon, this Widget uses a Broadcast Receiver to update the icon. This means that the icon will correctly reflect the Mobile Data state virtually all of the time. There is one circumstance where the icon may be out of synchronization; this is explained below in the Technical Notes. I hope to address this in a future update.


Technical notes regarding WiFi and Mobile Data

Notes:

WiFiMoDaToggle

setMobileDataEnabled(boolean)

Runs only on Android devices

up to KitKat 4.4, SDK 19

MobileDataToggle is being developed using Android Studio. All modules build with no warnings and no errors


The icons were built with MS Paint and generated by ...

ANDROID ASSET STUDIO CC BY 2.0

http://creativecommons.org/licenses/by/2.0/


MobileDataToggle uses permissions ...

ACCESS_NETWORK_STATE

CHANGE_NETWORK_STATE


MobileDataToggle has been run on Android versions ...


MobileDataToggle has been run on Samsung Galaxy hardware ...


MobileDataToggle has been run on Android Studio emulators ...


MobileDataToggle has been run on Genymotion emulators ...