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.
用户重启手机或更换 SIM / 电池后数据是否仍然存在?
是的。数据是持久的。除非用户“将其恢复为出厂默认设置”
SharedPreferences 存储在手机的内存中,而不是 SD 卡中。 它们也不会因重新启动/更换电池而被删除。