Monday, August 17, 2009

Android: IPC

http://linux.chinaunix.net/techdoc/net/2009/05/05/1110014.shtml
http://developer.android.com/intl/zh-TW/guide/developing/tools/aidl.html
http://developer.android.com/intl/zh-TW/reference/android/os/IBinder.html
http://developer.android.com/intl/zh-TW/reference/android/os/Binder.html
http://developer.android.com/intl/zh-TW/reference/android/app/Service.html

A service need to implement 2 interface for IPC, BnXXX(native) and BpXXX(proxy).
BnXXX is for server and BpXXX is for client. BpXXX just do function call like BpABC::remote()->transact(). BnXXX implement BnABC:: BnTransact(), to handle the request.


No comments:

Related Posts Plugin for WordPress, Blogger...