Turns on Wifi if needed.
Scans for Wifis, connects to the strongest available network, and deactivates mobile data.
If no Wifi is available, it deactivates the Wifi adapter and activates mobile data instead.
All by a background service, which will terminate after its work is done, until started again by the widget.
This is a work in progress, I will continue working on it when I have time.
Icon by Martz90 (http://martz90.deviantart.com)