If I use startService(), can the Activity communicate with the Service
and vice versa?

On 6月4日, 下午11時15分, Mark Murphy <mmur...@commonsware.com> wrote:
> Don't use bindService(). Use startService().
>
> On Mon, Jun 4, 2012 at 11:11 AM, Greenhand <cooperateonl...@gmail.com> wrote:
> > If I change the MessengerService into an media player service, a user
> > can control the media player by the ServiceConnection in the Activity
> > and the media player service can update the UI according to the state
> > of media player. The downside is that the playback will be stopped
> > when a user leaves the Activity. Is there a solution for this scenario?
>
> > --
> > 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
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training in DC:http://marakana.com/training/android/
>
>

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

Reply via email to