I am trying to create Servicefor my application that will reconcile Bluetooth connections and data. I want this service life cycle to start and end with Application, but still could have a specific Activitieslisten to the events that occur in this service (in addition, I Activtyshould be able to call special methods Serviceto record data or request connection status).
I started by creating AIDL interfaces for my callbacks and services, but I can't figure out exactly what I'm doing.
What is the best way to do this? Thank.
EDIT . To be clear, I do not need (or do not need) several processes for my application. Now I have no more than one; I just use AIDL, because it's the only way I know of Serviceto communicate with Activity.
source
share