When the adroid service kills the OS (due to low memory or low power). Does the service mean a notification before it is killed? Is callback onDestroy () being called?
Our main concern is our ability to maintain a state of service until its death. We know that a service can be restarted by the system after resources are available, but what is the recommended way to preserve the state of a service until it is killed?
The attached sequence diagram of our understanding of the process of closing the power of a related service, it includes what we would like to do.
source share