I have a boot receiver working perfectly in my app.
Now, I need to know if my receiver is enabled on the system, because some UI systems like MIUI (EMUI, etc.) let change this kind of permissions to the user...
I have been reading about that on this post How to check if Receiver is registered in Android? But best answers came from 2010! (pre Gingerbread).
The most common response is: there is no way, you can just call unregisterReceiver and swallow the exception...
But sincerely.. I don't understand the logic behind that or how I can take advantage of this workaround.
- Is there a new way to check broadcast receivers?
- If not, How can I use
unregisterReceiversafely? (I don't really want to unregister my receiver)
Any advice and suggestions will be greatly appreciated.
