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 活动,再次单击按钮我想通过完成 B 活动来进行 A 活动,但我不想重新加载 A 活动
您应该查看活动的生命周期和活动堆栈。developer.android.com/guide/components/tasks-and-back-stack.html。要了解有关此 developer.android.com/training/basics/activity-lifecycle/index.html 的更多信息。通过链接,您应该能够解决您的问题。