http://stackoverflow.com/questions/17153269/broadcastreceiver-for-wifi-connection-dont-work-correctly