mort wrote:
> Music players were the most common example for remote services even on
> Google's SDK site.

Got a link for that handy?

> How is it possible to enable playing while the
> app's in background without a remote service?

Simple: don't use a remote service. For example, the Music app that is
part of the open source project uses this service declaration in its
manifest:

<service android:name="MediaPlaybackService" android:exported="true" />

(the android:exported="true" means other applications can bind to it,
despite the fact that it has no <intent-filter>)

Now, MediaPlaybackService seems unusually long and icky (~1800 lines for
the copy indexed by Google Code Search), but it may be doing more things
that your particular implementation needs to.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in US: 14-18 June 2010: http://bignerdranch.com

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