• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help "onTaskRemoved" event implementation

Kazafka

Lurker
Hello,
I've come here to ask how to implement onTaskRemoved event in Sketchware. I tried to do it multiple times, but i was getting some errors all the time. Simply, I want to make my app do some things, when it's closed (onStop event helps here) and removed from stack (onTaskRemoved would definetely help here, but I don't know how to implement it). Any ideas?
 
Hi
Did u try onDestroy?
You see, onDestroy event is used in Android to "clean" things up and do some final stuff. This event is triggered whenever the system decides to temporarily destroy the instance of an app, or when the app finishes itself.
 
Last edited:
Back
Top Bottom