Broadcast receiver working even after app is killed by user
问题 I have a BroadcastReceiver that checks for network connection declared statically as: <receiver android:name=".core.util.NetworkChangeReceiver" android:label="NetworkChangeReceiver"> <intent-filter> <action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> <action android:name="android.net.wifi.WIFI_STATE_CHANGED" /> </intent-filter> </receiver> Network change receiver does something like: public class NetworkChangeReceiver extends BroadcastReceiver { @Override public void onReceive