android - How to completely exit the app -
i exit app completely. tried finish()
, android.os.process.killprocess(process.mypid())
still leave app running in background.
a lot of people said impossible, bank app able that. when exit bank app, can't see in recent apps menu.
does know how it?
when exit bank app, can't see in recent apps menu.
that has nothing process. processes , tasks not particularly related.
try finishandremovetask()
(api level 21+), or perhaps finishaffinity()
(api level 16+), both methods on activity
. or, thom wiggers suggests in comments, perhaps app not showing in recent-tasks list @ all, via android:excludefromrecents
.
Comments
Post a Comment