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. Swivel-Chair Potatoes

Just tried out Facebook and Twitter, social networking for the first
time. What I noticed about them is that people are tied to their
computers all day and don't get out. They work and play in front of
the computer screen.

Hopefully we can find a way to liberate people from their computer
screens through Mobile Technologies. There's a stream of Social that
needs to be dealt with. But that shouldn't mean you can't go to the
Park and sit down and read a good book (a real one).

- Juan T.
--~--~---------~--~----~------------~-------~--~----~

2. Need help in running the android junit test case for andriod APIDemo in eclipse

You will never really be able to just use the default Run as JUnit test action.

This is because this setups up the tests to run using the system
library of the project which, for Android project, is android.jar.
android.jar in the SDK is only stubbed methods/classes, and contains no code.

You can run unit tests by setting up Eclipse using the follow
instructions:  http://www.***.com/ #addjunit

Note that this will only work for tests not using the Android APIs.

If you wish to run true android test, please use instrumentations
running on the device.
See 
 http://www.***.com/ 
for more information.

The information from Diego to setup the test runners for ApiDemos is
good, except that you don't need to create a new project and copy
things over, you can simply create a project for the existing source
(you will need to link the apidemos project in your build path).

Xav








--~--~---------~--~----~------------~-------~--~----~

3. ADP1 not showing in ddms

4. Swapping in and out ViewGroups (Layout) within a container ViewGroup.

5. performCompletion on AutoCompleteTextView

6. Error reading jdwp list: null

7. String Resource - name "continue"