tags:

views:

13

answers:

1

I am trying to create a service that will use an AIDL-generated interface. How can I make the interface available to applications in other APKs?

Thanks!

A: 

Step #1: Publish the AIDL file (e.g., download off of your Web site).

Step #2: Add an <intent-filter> to the service in the manifest, advertising some name (e.g., custom action) that you are planning to support for identifying your service. Document this along with the AIDL.

Step #3: There is no step #3. :-)

Here is a sample client and service that demonstrate this pattern.

CommonsWare