Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部分手机在使用过程中数据偶尔直接清零了 #37

Open
SnowDragon2015 opened this issue May 27, 2020 · 3 comments
Open

部分手机在使用过程中数据偶尔直接清零了 #37

SnowDragon2015 opened this issue May 27, 2020 · 3 comments

Comments

@SnowDragon2015
Copy link

某些手机在用着的情况下,突然之间数据清零,偶现,公司测试机一直无法复现这个问题,愁死了

@sk95120
Copy link

sk95120 commented May 27, 2020

有些手机洗瓶放置一段时间。Applicaiton重新onCreate,但是Activity不是MAIN_VIEW的Activity,是之前的那个Activity。

@sk95120
Copy link

sk95120 commented May 27, 2020

有个方法可以复现。你打开应用后,去手机设置里修改下应用的权限。保存后就是出现这个应用后台重启。

@SnowDragon2015
Copy link
Author

单独用了一个SharedPreferences,同步保存最高步数,当计步模块的数据清0的时候,再把记录的最高步数同步进去

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants