I am trying to make 2 applications which will interact with each other using AIDL.
Application 1: Will be a service.
Application 2: Will be Activity(with a button) which will show some data which will be fetched by Application 1 service.
Now to start this interaction I know we can make one AIDL file in both applications and when user presses the button in application 2 we can involve the function of service from application one. That is lets say application 2 requests the current time then application 1(Service) will fetch the current time and return it to application 2.
My doubt is that I want to interact the other way round. I want to inform the activity from service when some particular digit occurs in time(or some other event). I am not sure how to proceed with this way of communication ie from Service to Activity.
Some pointers will be really helpful.