0

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

Coder atpace
  • 49
  • 2
  • 7

1 Answers1

0

You can implement call backs in AIDL and Observer Pattern can be created with these AIDL calls and interfaces.

I've answered this in another post, Please refer to :

AIDL Interfaces

Community
  • 1
  • 1
Harneev
  • 544
  • 4
  • 12