I'm somewhere in the code, where i have only very limited permissions, but have to ship data outside to an android application. (Android system C code) Obviously I cannot start a binder service in there, but I can connect to an already running service. Therefore my implementation checks every second if the service is available, and if it is available, it connects and starts sending data. This works fine.
My issue is the following. If I kill the service binary/process, the clients somehow do not see that the service is not available anymore. Is there a way to remove a service I added using addService(...)
? The clients do getService()
.