Use two different AIDL files and two different binders returned by onBind(). Use something in the Intent (e.g., custom action) to distinguish which one to return for a given bind request.
On Wed, Jan 26, 2011 at 12:39 AM, Dale Harvey <[email protected]> wrote: > I have an application that provides a remoteService that is defined > through an .aidl generated interface, this all works great, completely > seperate applications just need to bundle the .aidl and they can > control the service in a specific way > > However I want the sevice to provide an extra API when it is bound to > the application that it ships with, which is an administrative > interface. > > The administrative interface still needs to perform the usual > bidirectional communication that remoteService lets me use but with > additional calls in the api that arent provided to other packages > > Since the service and activity that starts it are in the same package > I have tried various setups of singletons and static interfaces to no > avail (there is state involved so a pure static interface isnt enough) > however none of these have worked, I can get round it with various > nasty ways through Application variables / talk through the filesystem > however I was wondering if it was possible in a cleaner way. > > Thanks > Dale Harvey > > -- > 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/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- 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

