title: Creating a listener using android AIDL?
body: <p>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 <strong>Event X occurs eg a list of resources are updated then client will implement <code>onResourceChanged</code> Listener</strong> . So I need a sample design for how to proceed? 
  PS : I took reference of <strong>PhoneStateListener</strong> but still didn't got what I am looking for</p>