Logo.jpg

 

Simple WiFi and Mobile Data is a Widget that uses one icon to toggle WiFi and Mobile Data through 4 state combinations - first, both WiFi turned off and Mobile Data turned off, then WiFi turned off and Mobile Data turned on, then WiFi turned on and Mobile Data turned off, then both WiFi turned on and Mobile Data turned on. It reflects each change in state with changes in the icon. The icon uses bright  green to indicate on, and bright red to indicate off.

 

l  Simple - If you have difficulty finding or seeing the tiny notification icons, you will love the very bright icon which always shows both the WiFi and the Mobile Data states – bright green to indicate on and bright red to indicate off

l  Simple - from the home screen Widget you always know instantly the current status of both WiFi and Mobile Data

l  Simple - just the Widget doing just one thing, which is to toggle among the four WiFi and Mobile Data state combinations

l  Simple - just the Widget, there is no App. After installing go to the App drawer, find the Widget in the Widget list, then long press and swipe it to the home screen

l  Simple - just the Widget, there are no advertisements

l  Simple - the sequence of changes corresponds to the first four binary numbers {00, 01, 10, 11}

 

Technical Notes regarding WiFi and Mobile Data

       While WiFi is enabled Android does not send a notification for changes in Mobile Data. Consequently, if Mobile Data is changed using the device Settings menu [or any other App] while WiFi is enabled, this Widget is not notified of the change by the Broadcast Receiver and cannot at that time reflect the change in the Icon

       If the user subsequently turns WiFi off using the device Settings menu [or any other App], this Widget should receive the missed notification and update the icon

       When both WiFi and Mobile Data are enabled, Android reports Mobile Data as not enabled and does not display it on the notification bar, even though it is in fact enabled

       While WiFi is turned on it supersedes mobile data for virtually all data transmission. You may keep Mobile Data connected for things like a multimedia message to be sent or received, but it is essentially dormant and consuming little to no power while Wi-Fi is connected

       Because Wi-Fi handles the data while it is on and connected, battery is saved because Wi-Fi generally uses much less power than Mobile Data. You can totally turn off Mobile Data, but then you would not be able to send or receive multimedia messages or use other carrier services that require a mobile data connection

       Mobile Data changes instantly but WiFi is not changed until the Toast message appears, so you do have to pause a moment [about 1 to 2 seconds] after selecting WiFi to ensure a smooth, predictable change

       When both WiFi and Mobile Data are selected, it takes a moment [about 1 to 2 seconds] for Android to cause the WiFi icon to displace the Mobile Data icon on the notification bar

       The API to change the Mobile Data state is deprecated for Lollipop - Android 5.0+, API-20 and later. Consequently, this Widget will not run on those devices and instead displays this Notification...

WiFiMoDaToggle

setMobileDataEnabled(boolean)

Runs only on Android devices

up to KitKat 4.4, SDK 19

 

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

ANDROID ASSET STUDIO CC BY 2.0

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

 

WiFiAndMobileData uses permissions ...

ACCESS_NETWORK_STATE

CHANGE_NETWORK_STATE

ACCESS_WIFI_STATE

CHANGE_WIFI_STATE

 

WiFiAndMobileData has been run on Android versions ...

l  Ice Cream Sandwich [API-15, 4.0.1]

l  Jelly Bean [API-16, 4.1 to 4.3.1]

l  KitKat [API-19, 4.4]

Note that the API to access and change the Mobile Data state is deprecated for Lollipop - Android 5.0, API-21 and later. Therefore, this Widget will not run on those devices.

 

WiFiAndMobileData has been run on Samsung Galaxy hardware ...

       S4 mini Android 4.4.2

       Note Android 4.1.2

       Note 3 Android 4.4.2

       Note 4 Android 4.4.4

       S3 Android 4.3

       S4 Android 4.4.2

       S5 Android 4.4.2

 

WiFiAndMobileData has been run on Android Studio emulators ...

l  S4 mini API 19

l  S4 mini API 15

l  Nexus 5 API 15

l  Nexus 4 API 15

 

WiFiAndMobileData has been run on Genymotion emulators ...

l  Samsung Galaxy S2, Android 4.1.1, API 16

l  Samsung Galaxy S4, Android 4.4.4, API 19

 

1mini.png

2mini.png

3mini.png

4mini.png