On Mar 2, 8:11 pm, Mariano Kamp <[email protected]> wrote:
> And why do you use startService instead of binding to it, get the interface,
> calls something, and get rid of the binding? I was under the impression that
> startService would be for something that runs in the background like playing
> an audio file.

You need to use startService any time you want the lifetime of the
Service to be longer than the lifetime of whatever is starting it. As
Marco mentioned, BroadcastReceivers are always supposed to be short-
lived.

--
Jon

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