摘要:
(1)数据存储之Shared Preferences:用来存储“key-value”格式的数据 public static final String PREFS_NAME = "MyPrefsFile"; Boolean mbMusic = false; //保存到preferences: SharedPreferences settings = getPreferences(0);//或者SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0); settings.edit() .putBoolean 阅读全文