On Sun, May 15, 2011 at 5:15 PM, Mark Cz <ome...@gmail.com> wrote:
> Is it possible for two apks to SHARE one service that runs in one of
> the apks process or runs in a different process ?

Yes.

> Meaning,
> I have two apks running in two different processes (the normal way),
> for simplicity each apk has only one activity.
> In addition each apk has one <service
> android:name="com.me.global.Service"/>,
> can I share this service between the two (or more) apks ?

Yes.

> The apks have a different certificate, different packageName, what
> should I write in the manifest of each of them to achieve my goal ?

For the purposes of this answer, App A is the one with the service,
and App B is the one that is using the service from App A. Have App A
supply an <intent-filter> for the service (e.g., one with a custom
<action>). Have App B use an Intent matching that filter when it calls
startService() or bindService().

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to