Getting / setting Wifi in Android is easy. First, set permission in manifest. CHANGE_WIFI_STATE is not needed when only getting status. Now, simple code. Since Wifi status changes realtime, register BroadcastReceiver if you want to get notified if status changes.
set
- «
- <
- 1
- >
- »