Create an AIDL server
AIDL server app exposes an service.
An AIDL server is an app that does the actual work and sends back the result to requesting clients. One service can connects with multiple clients via Binders.
Steps:
Create a service, e.g.
CalculatorService extends Service
Create an Implementation of
ICalculator.Stub
, lets name itCalculatorImpl
Implement methods:
Expose your stub implementation with a service binder:
Now your service is ready to be consumed by your clients, now let's create a client application.
Last updated