Monday, July 19, 2010

[android-developers] can a Service call startService() on itself?

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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate