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 <mgf...@gmail.com> 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 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/commonsguy http://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 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