You are not going to fully get what you want... If each developer includes it in their apk files then they will run as part of that process.
What you have to do to get the effect you want is to distribute your service as a completely separate app. Create providers (if necessary) and publish intents so that developers know how to target your app with an intent... This would allow them to use your service. Of course, the downside is that the developers would have to check that your app exists on the device, and if it does not, provide a link to download your app from the market so they can install it. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Feb 29, 2012 at 11:29 PM, [email protected] < [email protected]> wrote: > These days I get a task. I need to do a plugin jar insert into other > apps. > > In this jar, I design a download service to run download task. I soon > find that if two different apps include my jar, then there would be > two different service run in the two different app-process.(one app- > process match one service as a pair, and there are two pairs) This is > not I want, I just want a common service run in background and the two > apps can share it. > > That is, I want to know if I can get a "global service" run in > background, and applications that include my plugin jar can start that > service and run download task. > > Is there any solution to my design? or how can I optimize my design. > 3ks~ > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

