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

1. i am so beginner

can't even get eclipse to work..... so sad in santa clara


2. MapView and SDK 1.0


I am learning how to use Google Map in an application.

I have founded several example with SDK 0.5  0.9, but not with 1.0.
It seems there where some changes...

I have a connection error :

[2008-10-25 09:26:07 - ddmlib]Une connexion tablie a t abandonne
par un logiciel de votre ordinateur hte Une connexion tablie a t abandonne par un
logiciel de votre ordinateur hte
        at Method)
        at Source)
        at Source)
        at Source)

Even if I disable (Allow All) my firewall.

In my Manifest I have added :
        <uses-library android:name="" />
        <uses-permission xmlns:android="
res/android" android:name="android.permission.INTERNET"></uses-
android" android:name="android.permission.ACCESS_COARSE_LOCATION"></

My screen is :
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="

        <  android:apiKey="bogus"
    android:layout_height="fill_parent" />


In My code I only have :
public class GlocationMap extends MapActivity  implements
LocationListener {


Is there somewhere a full & simple working example displaying a Google
Map with SDK 1.0 ?

3. D-Pad on the emulator does not exist on G1

4. Regarding view onKeyDown issue...

5. 20081024 What is the lastest on Android Speech Recognition ?

6. Getting Text Value from a org.w3c.dom.Node

7. Source Compiling error