Android keep BroadcastReceiver in background
This is not how you should register a receiver. You receiver stops working, because you construct it in onCreate, which means it will live as long as your app is alive. When the app gets destroyed, you also lose the the receiver. If you register receiver inside an activity, you should always register it in … Read more