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.
好的,所以我有一个程序需要用户单击按钮才能继续整个程序。每次单击按钮时,用户都会移动到程序中的不同阶段。问题是我没有办法或不知道当活动被破坏时我可以存储用户离开的位置的方法。如果有人有任何想法,请与我分享。谢谢。
如果您想在您的应用程序/活动被破坏后仍然保留数据,请查看 google sample中的此示例。另一种选择是 onSaveInstanceState(...) & onRestoreInstanceState(...)