On Tue, May 1, 2012 at 1:48 AM, Freddy <[email protected]> wrote:
> I'm creating a remote service with an AIDL.  I've developed the
> service using the package name
>
> package com.mycompanyname.myservice;
>
> I want to provide the AIDL (and my api interface docs) to a third-
> party so they can build an activity and utilize my service.  If their
> package is named
>
> package com.theircompany.theiractivity
>
> then how can they use my AIDL in their activity?

They create a src/com/mycompanyname/myservice directory in your
project, drop your AIDL in there, and use it.

> If not, then what is the prefered method
> to expose a remote service api to exchange data between a service and
> activity?

You are welcome to use the command pattern, with the activity calling
startService() when it needs work done, and using any number of means
to have the service report results back, including:

- sending a PendingIntent over as an extra on the Intent passed to
startService()
- sending a Messenger over as an extra on the Intent passed to startService()
- using an ordinary broadcast Intent

-- 
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 [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

Reply via email to