mercredi 27 juillet 2016

Android - avoiding parallel run of same service within multiple apps

Little background: I am developing library which uses one background service. There is a hight probability that there will be 2 or more apps implementing the library on the same android phone.

Q: Is there any solution to prevent this background service from running if one of the installed apps already launched the service? I basically need only one instance of that bg service running no matter how many apps is implementing the lib with service.

Aucun commentaire:

Enregistrer un commentaire