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.
我想将几个变量的值保存在手机的内存中,例如,当我按下一个按钮时,一个变量发生了变化,我将它保存在内存中。这些变量存在于不同的活动中。
另一方面,我想打开该文件并在另一个活动中读取这些变量。根据每个变量的值,我想显示信息、图像......
我怎么能做到这一点?我在这个页面上尝试了几个例子,但我没有让它在我的应用程序中工作。谢谢。
检查 android 文档以获取存储选项。如果您没有太多要保存的值,那么我建议使用SharedPreferences。
我用两个日历来确定开始日期和完成如下,
date.Ic.add(Restrictions.between("islemZamani", date1, date2));
然而,这个标准的结果有 date1 和它们之间的结果,不包括 date2 的结果。我的意思是,它显示date1<= 结果。我想要 d