title: Android bindService / remote services - any basic examples?
body: <p>As a newbie to Android development, I'm trying to do the basics and build a media player. It works fine in one activity, but I'm now moving the MediaPlayer stuff to a remote service so it can carry on after the activity is destroy. I've moved the necessary code to the service, left comments in the activity where I'll need to call service methods, implemented my AIDL and it all builds with no errors (Eclipse).</p>
  
  <p>However, I'm totally stumped as to how to call IPC methods. Are there any simple and minimal examples with no fat - just the bare essentials?</p>
  
  <p>As I'm using IPC methods, I don't need to use onStart() at all - right? (I intend to use LoadFile(File path), and then have public void considerDeath() { if (!isPlaying()) { MyService.stopSelf(); } } method called from activity.onDestroy )</p>
  
  <p>/guide/developing/tools/aidl.html has multiple binders, but when I use the mSecondaryConnection portion, I get "<strong>MyService.Stub cannot be resolved</strong>"</p>
  
  <p>I've tried <a href="http://www.anddev.org/remote_service_tutorial-t8127.html" rel="nofollow noreferrer">http://www.anddev.org/remote_service_tutorial-t8127.html</a> which seems to confuse things by overloading methods.</p>
  
  <p>I can't find anything by Mark Murphy either on the subject :(</p>