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. Hypotheses for why I can't find a ContentProvider

I've written a ContentProvider, stealing heavily from NotePadProvider, I've
got the <content> in the manifest,

<provider android:name="StoryProvider"
android:authorities="com.example.writer.Story"
/>

Its CONTENT_URI is com.example.writer.Story/chapters, then when I try to use
to use that in a managedQuery(), the cursor comes back null and in the
logcat it says
E/ActivityThread( 5236): Failed to find provider info for
com.example.writer.Story

And indeed, the ContentProvider's  query() is not getting called.

So, any advice on where to go rooting around?  Is there a list of all the
available ContentProviders out there?  What stupid things commonly done by
n00bs prevent a ContentProvider from being found?

Any advice gratefully welcomed.  Next step, a plunge into the Android
source. -Tim

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

2. Encoding problems in localizations/EULA question

In trying to get my app ready in Polish and Czech, I am running into
the following error trying to save a text file in Eclipse:

"Save could not be completed - some characters cannot be mapped using
Cp1252 character encoding". I am using the Google Translator and
cutting/pasting.

What is the correct way to save a Czech or Polish text file in
Eclipse? For my instructions and EULA I am using text files under
"assets". They are too large to use in the strings files.

Which leads to my other question, does the EULA have to be in the
local language (I'm assuming so) and if so, how are others handling
this problem?

Thanks for any help.
--~--~---------~--~----~------------~-------~--~----~

3. setText not changeing

4. G1 developer phone outside the first countries list

5. Setting locale programmatically

6. GPX files in Emulator/Eclipse

7. Jython works on Dev Phone! (jythonroid)