【发布时间】:2016-08-02 19:47:04
【问题描述】:
我对 sharedPreferences 很好奇,我真正的问题是Variable stored using sharedPreferences in one activity can be fetched in second activity but can i get the value of variable again in third activity ? does it provide this usage? if not How can i achieve this task?
【问题讨论】:
-
你不能在第三个活动中得到它,就像你在第二个活动中得到它一样吗?您能否编辑您的问题以提供您尝试过的一些代码?
-
你试过了吗?按照现在的表述方式,您没有理由无法在应用程序的任何地方获取变量的值。
-
哇,首先是概念问题,而不是编码问题,所以没有示例,