Android examples for android.net.wifi:Wifi State
Click the following links for the tutorial for android.net.wifi and Wifi State.