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?
 

DonManfred

Expert
Licensed User
Longtime User
that trigger when the user kill the app from the recent app?
No. Your app is killed. No event will arrive to inform about this.
 
Upvote 0
Top