In my app, I have a Service
running in the background (and foreground).
In this Service
, there's a CountdownTimer
and when it finishes I want to launch the app in a certain Activity
and do some stuff in the Activity
automatically, and I want this to work even if my app is killed or closed.
I've seen some answers, this is one of them, but it won't work for me. I've found a better solution and posted it as an answer below, but still, it works only if the app is closed but not completely killed.
How can I launch an Activity
from a background Service
even when the app is closed or killed?