Answer the question
In order to leave comments, you need to log in
What are the aspects of service survival in Android?
Here https://habrahabr.ru/post/265159/ the guy very well reveals aspects of the survival of services in Android.
The essence of the article:
If the user swipes the application from the list, then this leads to the closing of the service affected by this activity. As an output - suggest to use "mode" Foreground. As you know, this generates a Notification in the status bar.
I immediately remembered the application cloud.mail.ru. I have been using it for over a year. Removing activiti from the running list never caused the service to stop. Never had to restart it. And the unkillable "Notification" does not hang in the bar.
How do mail.ru developers get around this problem in their cloud.mail.ru application ( https://play.google.com/store/apps/details?id=ru.m...
p/s I am writing here because there is no way to comment on the original article.
Answer the question
In order to leave comments, you need to log in
It seems to me that you have not fully understood the principles of operation of services and a particular application. Please clarify how you determined that the service never stops?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question