I want to make a service that I can register to. The service will broadcast messages of different "types" and each application can register itself to recieve messages of different type.
For example:
I want to write a servive that reads the twitter messages of some user and broadcasts to the systems the tags. Then a consumer can register to recieve only messages of tag "foo", and recieve the tweet message. Another consumer can register to recieve only messages of tag "bar", and recieve the tweet message.
Lets assume I know how to build a service. My first idea is to just broadcast a something, and then filtering it in the apps. But I am not happy about this solution. I know there are some android services that work similar to what I want, but I found no reference on the web on how to implement this.
Some RTFM I have done is:
- http://groups.google.com/group/android-developers/browse_thread/thread/e1863d2822b22a33/90873ef925cd2aad
- http://www.vogella.de/articles/AndroidServices/article.html
- What is the simplest way to send message from local service to activity
- How to have Android Service communicate with Activity -> not good for me, as this question is about a single process, and I need the service talking to several different processes
The main problem, is that most of the docs on the internet are about me calling the service, and not the service calling me.