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

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

Sponsored Links

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 !


Other Threads


Out of curiosity, did LogCat show any log messages here with more
details of your problem? RESULT_ERROR_GENERIC_FAILURE is a fairly, um,
generic failure, so I would hope the SMS system would provide more error
info at least as log errors or warnings or something.

Mark Murphy (a Commons Guy) |

_Android Programming Tutorials_ Version 1.0 In Print!


2. Disable context menu not working ... bug?

I am setting setEnabled = false for a Context Menu item.

The item appears grayed out ... but I can still click on it.  When I do, the
menu closes.

This does not seem to like the correct behavior to me.

Is this a bug or a misunderstood feature?  Anyone else experiencing this?

Using 1.6



3. UI Related questions.

4. seriously, how can I unsubscribe?

5. Gridview padding? or imageview?

6. Problem: set projection matrix in GLSurfaceview.onDrawFrame

7. (Case 2338) [Contact us] Tmobile g1 android 1.6 robot