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)

 

你可能感兴趣的:(多线程)