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 !

--



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

Hi,

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
java.io.IOException: Une connexion tablie a t abandonne par un
logiciel de votre ordinateur hte
        at sun.nio.ch.SocketDispatcher.write0(Native Method)
        at sun.nio.ch.SocketDispatcher.write(Unknown Source)
        at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source)
        at sun.nio.ch.IOUtil.write(Unknown Source)

Even if I disable (Allow All) my firewall.

In my Manifest I have added :
        <uses-library android:name="com.google.android.maps" />
        <uses-permission xmlns:android="http://schemas.android.com/apk/
res/android" android:name="android.permission.INTERNET"></uses-
permission>
                <uses-permission 
xmlns:android="http://schemas.android.com/apk/res/
android" android:name="android.permission.ACCESS_COARSE_LOCATION"></
uses-permission>


My screen is :
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >


        <com.google.android.maps.MapView  android:apiKey="bogus"
        android:layout_width="fill_parent"
    android:layout_height="fill_parent" />

</LinearLayout>



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

...
 super.onCreate(savedInstanceState);
   setContentView(R.layout.main);
...


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