In this post, we take a look at building a simpler API to work with Broadcast receiver, which will automatically unregister itself when the Activity pauses, and register again when it resumes. Broadcast Receiver To build this , we first create a class which observes lifecycle events class Broadcas