Android: Smart WiFi Toggler is a free utility that automatically learns where your preferred wireless networks are located and joins them when you’re nearby. When you leave the wireless range, the app will turn off your phone’s Wi-Fi radio so you don’t waste battery searching for networks while you move around.
If you frequently switch between Wi-Fi at home or the office and 3G/4G on the go, you know it sucks to look down at your phone only to see you left Wi-Fi on while you’re driving and your battery has suffered as a result. XDA forum member sebouh00 designed Smart WiFi Toggler to handle this problem.
The app uses your phone’s network location so you don’t trade one battery drain (scanning for Wi-Fi networks) for another (scanning for GPS location). The app even automatically learns where those networks are located so you don’t have to program it manually.