Sunday, May 24, 2015

Android Binder Note.

https://www.youtube.com/watch?v=Jgampt1DOak


Intents, Content Providers, Messenger, all system services like Telephone, Vibrator, Wifi, Battery, Notification, etc. utilize IPC infrastructure provider by Binder. Even the lifecycle callbacks in your Activity like onStart()onResume()onDestroy() are invoked by ActivityManagerServer via binders.
Proxies take your high-level Java/C++ method calls (requests) and convert them to Parcels (Marshalling) and submit the transaction to the Binder Kernel Driver and block. Stubs on the other hand (in the Service process) listens to the Binder Kernel Driver and unmarshalls Parcels upon receiving a callback, into rich data types/objects that the Service can understand.


No comments:

Post a Comment