Như Quỳnh Lan
New member
How do I know if my broadcast receiver is registered?
Answer
Answer
- You can put a flag into your class or activity. Put a boolean variable into your class and look at this flag to know if you have the Receiver registered.
- Create a class that extends the Receiver and there you can use: Singleton pattern for only have one instance of this class in your project.