I’m building an app that uses content observers.
My problem is, that I tend to register my content observers multiple
times. This causes my application to log events several times.
How do I find out, if my content observer is already registered?
I’m building an app that uses content observers. My problem is, that I tend
Share
Better late than never…
AFAIK you can’t check whether a content observer is registered so I use a Hashmap to store the observers and have a constant for each observer type to check if it needs to be registered. You could also use the URI you are registering as the key…