Requirement . You must open the service / contract from another process to other applications. For example: getPhoneRecord (recordId), deletePhoneRecord (phoneId), etc.
Potential Solutions : Messenger or AIDL
Based on my analysis, I believe that AIDL is the only option, because Messenger provides a very general way to send messages through applications. Messenger is limited to sending (Message) on the client side and handleMessage (Message msg) on ββthe server. There are other differences, such as multithreading. But I take care to define an API contract from a service that other applications / consumers can call. Do I understand correctly?
source
share