Same servicein multiple APKs, only want "best one" to launch

by Watcher » Fri, 18 Dec 2009 01:20:49 GMT


Sponsored Links
 Hi,

I have the same service in multiple APKs. In each of the APKs, I am
going to launch the serivce.
Because the APK are difference "applications" that have been installed
& upgraded at various times, the service implementation in each may be
different. I am trying to figure out a way to make sure startService()
runs the implementation that is newest.

I have been fiddling around with PackageManager and Manifest meta-data
and categories but I can't seem to get my head around it. It's really
a leader-election problem... has anyone ever done this ? Any clues ?

Thanks !

--