You can try registering a receiver for the event, call something like this in your
Activity
's
onCreate
;
registerReceiver(myStateChangeReceiver, new IntentFilter(WifiManager.WIFI_STATE_CHANGED_ACTION));
Where
myStateChangeReceiver
is a
BroadcastReceiver
. You might need to enable some permissions for this.
Hope this helps,
Fredrik