Closed Ruggero1912 closed 2 years ago
So that the main acitivty / in general every other process that needs it, knows its status.
In this way the main activity would be able to restart the service when needed (for example in onResume).
Note: if you implement this broadcast, please implement also the main activity side of it, in order to manage the status of the service.
done
How to force android to keep the thread running as much as possible: https://stackoverflow.com/questions/9093271/start-sticky-and-start-not-sticky
So that the main acitivty / in general every other process that needs it, knows its status.
In this way the main activity would be able to restart the service when needed (for example in onResume).
Note: if you implement this broadcast, please implement also the main activity side of it, in order to manage the status of the service.