Yes it can. You can call startService from any Context (assuming the caller has permission to start the service).
On Mon, Jul 19, 2010 at 6:08 PM, goosedroid <[email protected]> wrote: > I have a Service which is typically bound to, but sometimes needs to > go into a mode where it should be active even if nobody is bound to > it. Therefore, startService() must be called so it can be explicitly > started & stopped. > > In my case, when exactly this should happen is best determined by the > service itself, depending on its state (after being bound to). Can the > Service (at the appropriate time) just call startService() from it's > own Context? > > 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

