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:
Post a Comment