Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个第一个活动A,我开始一个新的活动B:
intent.setClass(A.this, B.class);
现在,在某些事件之后,我想从 A 完成 B(A 包含一个正在运行的线程)。
我怎么能做到这一点?
提前致谢。
你没有。当Activity内存资源不足时,将由操作系统完成。
Activity
此外,单击后退按钮会调用finish()当前活动并显示后台堆栈中的顶部活动,因此您可能已经完成了子活动。
finish()