Services are singletons.  You do not use stopService() with bindService().
 A service remains instantiated as long as there are one or more clients to
it, OR it is explicitly in the start state.

On Thu, Apr 15, 2010 at 4:31 PM, Surendra Prasad <[email protected]>wrote:

> Hi,
>       I would like to do this, let me know if it possible in android?
>
> App1 --> bindService() or startService() to AndroidService1
> App2 --> bindService() or startService() to AndroidService1 (same
> service)
>
> I would like App1 and App2 to get different instances of
> AndroidService1. Why I want to do this is say App2 doesn't need the
> service any more & it calls stopService() then App1 should still
> continue to work with its own instance of service app.
>
> thanks,
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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

Reply via email to