摘要: (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 阅读全文
posted @ 2011-07-28 15:42 lxmanutd 阅读(154) 评论(0) 推荐(0) 编辑