Fichas
AIDL Implementation
Fichas del conjunto (5)
- 1What is AIDL? What does it do?Android Interface Definition Langauge.
Allows us to define a interface that both client and service agree upon - 2What are the steps for implementation of the AIDL?1.create aidl fail
2.implement the interface
3.expose interface to client - 3How do you implement the interface?1. Extend the generated IBinder interface with the instance of the generated stub class
2.Implement the methods from the aidl file - 4How do you expose the interface to clients?1.Extend service class and implement onBind() - which will return an instance of the class that implements the generated stub
2.Client calls bindService() to connect
3.Clients onServiceConnected() receives binder instance
4. - 5What is RPC?Remote Procedure Calls.
Allows us to make method calls locally, while executing them remotely in another process