Android Question Any way to detect Killed App?

MAGAREY

Member
Licensed User
Longtime User
Hi!
I have a foreground service, but when i close the app thru swiping the app in recent app, just in that case i want to stop the foreground service
There is any way to detect when the user kill the app, anything like onTaskRemoved or something that trigger when the user kill the app from the recent app?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…