片段中的Android Studio SharedPreferences错误 [英] Android Studio SharedPreferences Error in Fragment
本文介绍了片段中的Android Studio SharedPreferences错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
自2天以来,我尝试使用Sharedpreferences刷新片段,但只有错误:
I try to refresh a Fragment with Sharedpreferences since 2 days, but only Errors:
现在,每次用户更改选项卡布局的选项卡时,他都必须单击按钮"以手动刷新.但是没有人想要这个!
Now, every time when the user change the the tab of the tablayout, he has to click on a Button to refresh manually. But no one want this!
我希望任何人都可以删除选项卡中的"updatebutton" 3和4并自动进行刷新.
I hope anybody can remove the "updatebutton" 3 and 4 in the tab and make the refresh automaticly.
更新:解决了
推荐答案
Finally I used this: How to call a method after a delay in Android
现在,该应用程序可以正常运行了.谢谢大家!
Now the App works fine. Thanks to everyone!
这篇关于片段中的Android Studio SharedPreferences错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文