What are the functions of a Binder class in android?
i. Binder is responsible for doing Marshaling & Un-Marshaling of the data that has to be transferred.
ii. Binder will do thread management in case of aidl, where it will create and dispatch a new thread when ever a new incoming request comes to the service.
iii. Binder class stub functionality has to be implemented by the programmer which contains interface functionalities for client.
i & ii
i, ii, & iii
Below are the functionalities of Binder class.
1.Marshaling & Un-marshaling of out gong and incoming data across the processes
2. thread management for service class as incoming call from multiple clients may come from different threads.
3. Binder's stub functionality has to be implemented by the programmer.
Back To Top