There are two services in my application, ServiceAand ServiceB. ServiceA- this is a foreground function, it ServiceBwill be launched when the device screen is turned on and will be stopped when the device screen is turned off.
These two services collect information that we cannot afford to lose. But on Android 4.4 *, when the device’s screen is turned off for a while and then turned on again, I can notice 0 processes and ServiceAworking in the working section.
I saw reports on this version where they claim that this script appears when the user extracts our application from the latest tasks. But I notice this when the screen is off for a while.
Note that ServiceAboth ServiceBsticky returns and also ServiceA- this is a foreground function.
Any definition would be very helpful.
source
share