I\'ve tried to register a Wifi BroadcastReceiver to get the wifi state when it changes. But so far I have no luck receiving the broadcast.
Your receiver in manifest should looks like this
Also the following permission may be needed