When can I call onTaskRemoved ()?

The documents indicate that

This is called if the service is currently running and the user has deleted the task that comes from the service application.

It seems to be called only when the application is removed from the list of recent tasks. Pressing the back button until all Activitiesare destroyed in the task does not call it. Are there other scenarios where this can be called?

+4
source share
1 answer

Pressing the "Back" button until all actions are destroyed in the task does not call it.

Activities "" , . ( ), , Service.onTaskRemoved() Activities, .

, ?

, , , " " *. Service Service.onTaskRemoved().


* AFAIK, Service.onTaskRemoved() .

+3

Source: https://habr.com/ru/post/1657914/


All Articles