0

我已经杀死了后台进程,但recentTaskInfo仍然存在活动信息。我知道进程和活动返回堆栈是不同的,但不知道如何从这个堆栈中删除活动。

4

1 回答 1

0

从此堆栈中删除活动。

只需使用

MyActivity.this.finish();

有关更多信息,请参阅此链接 http://developer.android.com/reference/android/app/Activity.html#finish%28%29

编辑

有关 Android 中的任务和返回堆栈的所有内容,包括您的问题,都可以在这里找到:http: //developer.android.com/guide/topics/fundamentals/tasks-and-back-stack.html

于 2013-01-22T08:22:42.580 回答