Reputation: 943
I'm developing an Android library and an app. They are supposed to work together like that: the app hosts a String and has several other tasks. The library will be used by third party developers. They should be able to query the installed app (even if it's closed and without opening the GUI of the app) by implementing the library (which does other stuff too). My current solution for this are broadcasts:
Right now I'm not really shure if that's the best approach. So my question is:
Is there a better way to share simple data between an app and a library that can be used by many apps than using broadcasts?
Upvotes: 0
Views: 872