且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何,我会恢复上次查看活动后,该用户已被关闭的应用程序?

更新时间:2023-10-13 12:22:22

我认为你应该使用共享preferences。而在每次打开活动,你必须把你的共享preference一个值,因此,如果您再次打开你的应用程序会检查您的共享preference值,然后进行比较,称适合的活动珍惜你了。希望它可以帮助:)

I think you should use sharedpreferences. And in every activity you open, you have to put a value on your sharedpreference so that if you open again your application it will check the value of your shared preference then compare it, call the activity that fits the value you got. Hope it helps :)