I spent some time looking with Google Code Search, but I have not been able to find instances where this was done.
Would there be any differences between these two attempts: Intent intent = new Intent(getApplicationContext(), MyService.class); startService(intent) or Intent intent = new Intent(this, MyService.class); startService(intent) Thanks On Jul 19, 10:07 pm, Kumar Bibek <coomar....@gmail.com> wrote: > Sure, why not... > > On Jul 20, 6:08 am, goosedroid <alexrhel...@gmail.com> 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 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