As a newbie to Android development, I'm trying to make the basics and create a media player. It works fine in one action, but now I am moving MediaPlayer material to a remote service so that it can continue to work after the activity is destroyed. I moved the necessary code to the service, left comments in action, where I need to call the methods of the service, implemented my AIDL, and it all builds without errors (Eclipse).
However, I am completely overwhelmed by how to call IPC methods. Are there simple and minimal examples without fat - just basic subjects?
How do I use IPC methods, I do not need to use onStart () at all - right? (I intend to use LoadFile (file path), and then public void thinkDeath () {if (! IsPlaying ()) {MyService.stopSelf ();}} called method from activity.onDestroy)
/guide/developing/tools/aidl.html has several binders, but when I use the mSecondaryConnection part, I get " MyService.Stub cannot be resolved "
I tried http://www.anddev.org/remote_service_tutorial-t8127.html , which seems to confuse things with overload methods.
I can not find anything from Mark Murphy about this :(
Chris source
share