sharedpreferences 根据Key 存取值, 同时sharedpreferences的对像要是同一个
例:
SharedPreferences spA = getSharedPreferences("aaa",MODE_PRIVATE);
Editor editor = spA.edit();
editor.putString("str", "aaa");
editor.commit();
SharedPreferences spB = getSharedPreferences("bbb", MODE_PRIVATE);
spB.getSring("str","0");取出的值为0
spA.getString("str","0");取出的值为aaa