I would like to implement a listener to change the state of WiFi and mobile Internet
created a simple BroadcastReceiver c
intent filter android.net.conn.CONNECTIVITY_CHANGE
it works, but I've noticed that when you turn on/off my WiFi BroadcastReceiver
receives two identical intent with a delay of about 100 milliseconds.
Why and how can I fix it?