I am developing an android broadcast receiver for checking internet connection.
The problem is that my broadcast receiver is being called two times. I want it to get
It's easier to use https://github.com/JobGetabu/DroidNet
@Override public void onInternetConnectivityChanged(boolean isConnected) { if (isConnected) { //do Stuff with internet netIsOn(); } else { //no internet netIsOff(); } } private void netIsOn(){...} private void netIsOff(){...}