Ah, I see. It seems that this is the process that is referred to by Google's documentation: http://developer.android.com/reference/android/app/Service.html. Through this mechanism, you can start the service and then keep a reference to it in whatever Activity started it; you can then call the service's methods from that reference, which avoids IPC completely. Swell. Thank you so much for explaining it.
Matthew Fleming On Sep 28, 7:21 am, Mark Murphy <[email protected]> wrote: > Just subclass android.os.Binder and use an instance of it in your > onBind() method. You do not need AIDL for the local binding pattern. > > > > > > > > > > On Wed, Sep 28, 2011 at 8:19 AM, Matthew Fleming <[email protected]> wrote: > > My Android book, the quite massive Pro Android 3, shows an example of > > a local service without an interface (aside from that necessary to > > start and stop the service) and a remote service with an interface > > defined with aidl. However, it seems that what I need is a local > > service with an interface, since the service only has to be available > > to its own application, but the application has to be able to send > > tasks to the service. Of course, this could be done with a remote > > interface, but it seems this would introduce IPC overhead that might > > be avoided with a local service. What's the best way to proceed? > > > TIA, > > > Matthew Fleming > > Dermvision > > > -- > > 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 > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Android App Developer Books:http://commonsware.com/books -- 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

