`
lizhw
  • 浏览: 6963 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

SharedPreferences

阅读更多

 

 

Note: currently this class does not support use across multiple processes. This will be added later.

 

 意思是

SharedPreferences不支持多线程.

		//schedule widget 共享数据
		SharedPreferences widgetData = getSharedPreferences("scheduleWidget", Context.MODE_PRIVATE);

 

widgetData.edit().putLong("notifyTime", eventStartTime).commit();

 

widgetData.getLong("notifyTime", 0)

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics