On May 3, 2013 3:03 AM, "Johan Appelgren" <[email protected]> wrote:
> In addition to binding to the service, do you use startService? If you do, 
> you must
> also call stopService/stopSelf, just unbinding and calling stopForeground is 
> not enough.

Thanks, I ended up putting together a small sample to better
understand it, and you're exactly right.

Services are confusing. :)

I tried doing just bind/unbind and calling startForeground(), but that
doesn't keep the service alive after unbinding.

It has to be started and bound to (not sure if the order matters, but
I had to do both) in order to keep it alive after unbinding. As you
said, I also have to stop it when appropriate (i.e., when it's not
playing) as well.

I think I have it working as expected now, thanks again.

Larry

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to