coslad Well-Known Member Licensed User Longtime User Mar 24, 2018 #1 Is StopAutomaticForeground applicable even to Sticky service ?
Erel B4X founder Staff member Licensed User Longtime User Mar 25, 2018 #2 Sticky services are less useful in newer versions of Android. The OS will not keep them running. If the task is important then you should use a foreground service. coslad said: Is StopAutomaticForeground applicable even to Sticky service ? Click to expand... Automatic foreground state is only entered when a service is started from a receiver. This is not the case with sticky services, when they start because of their "stickiness". So StopAutomaticForeground will not do anything in that case. Upvote 0
Sticky services are less useful in newer versions of Android. The OS will not keep them running. If the task is important then you should use a foreground service. coslad said: Is StopAutomaticForeground applicable even to Sticky service ? Click to expand... Automatic foreground state is only entered when a service is started from a receiver. This is not the case with sticky services, when they start because of their "stickiness". So StopAutomaticForeground will not do anything in that case.