@
@
@dancoder2019-06-11 19:55:12
Java
@dancoder, 2019-06-11 19:55:12

How to make a service with infinite notification?

How to make a service that will perform some operations in the background (In my case, send a request to VK services about the user's online / offline), but at the same time, so that this service is not destroyed when the application is closed from the task list. I want to make a notification that can't be swiped, saying that the service is running. But how to do that? Any ideas?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
itdroid, 2019-06-13
@itdroid

Use the Foreground Service

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question