P
P
postflow2016-04-04 12:04:05
Android
postflow, 2016-04-04 12:04:05

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

2 answer(s)
A
Alexey Perelygin, 2016-04-04
@orcDamnar

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?

A
aol-nnov, 2016-04-04
@aol-nnov

there is a dirty hack to remove the notification from the foreground service. but it can break with any update from google.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question