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. Bluetooth Pairing

Hi All,
 I've seen a few threads on this but haven't really found a good
answer.  Plus there seems to be some confusion around the behaviour of
the pairing dialog.

I am connecting my nexus 1 to a bluetooth spp server device to read
and write data.

After some experimentation I have found the following

1. If I offload the establishment of the connection from the UI thread
(which I would consider a good idea) the pairing dialog (enter pin) is
not displayed - rather a notification item appears which the user must
click to pair the devices.

2. If I establish the connection from within the UI thread then the
paring dialog will come to the foreground but obviously there is a
small ugly UI pause while waiting for this.

In either case the request to establish the connection is timing out
before the user (me) can enter the pin with an IOException Service
discovery failed.

My ideal would be that the pairing dialog comes to the front (without
have to block my UI thread) and that the connection attempt would not
time out while waiting on pairing entry.

Has anyone come up with a way to make this work?

Cheers
Mike

-- 

2. Trivializing Android development alongside with Windows Phone

Hello,

We are going to push forward common mobile development trivialization
across platform-boundaries.

Our current experience evolves around Microsoft's platform and hence
around Windows Phone - hence the first technology demonstrations are
built around that:

http://www.youtube.com/watch?v=rXuX0sIY3Ls

The video demonstrates the absolute trivialization, where an
application development can be made straight from the phone (the
example uses InfoPath to show trivial XML content as a form) - however
we are going to provide more developer-focused examples.


We are focusing to provide support on Android as well, however any
community support or centralized effort would be of great help here.
We are relatively new to Eclipse development environment and our
resources are currently relatively limited.

We can provide all the examples and help on creating the alike
abstractions to support on Android that we are building for Windows
Phone.

Only requirement is Visual Studio 2010 (or 2008) with the tools that
are described within the technology documentation at:

http://abstraction.codeplex.com


Even if we cannot get any interest raised, this post can serve as
heads-up on what should be coming in the future :-)


Happy Droiding,

Kalle

-- 

3. [Monkeyrunner]: How to simulate short press on power button

4. [android-d鈥媏velopers] Samplerate

5. Can we set the Nexus S Tag Id?

6. Help with Location Updates -- Resolved!

7. Detecting an Uninitialized Location