I have designed a service using AIDL in system service ,which is called by the client process to perform certain calculation and return their desired output but now I have to add a listener which must be implemented by on certain events, like if Event X occurs eg a list of resources are updated then client will implement onResourceChanged
Listener . So I need a sample design for how to proceed?
PS : I took reference of PhoneStateListener but still didn't got what I am looking for
Asked
Active
Viewed 3,407 times
0

Coder atpace
- 49
- 2
- 7
-
pass another AIDL interface (callback) in some of your AIDL call, like: `register(callback_aidl_object)` – pskink Dec 20 '15 at 09:11
-
Please share more details about implementation – Coder atpace Dec 21 '15 at 05:25
-
see https://android.googlesource.com/platform/development/+/master/samples/ApiDemos/src/com/example/android/apis/app/IRemoteServiceCallback.aidl – pskink Dec 21 '15 at 07:29