标签:
1.存
SharedPreferences sp = context.getSharedPreferences("mybound", Context.MODE_PRIVATE);
Editor editor = sp.edit();
editor.putString("serial_no", serial_no);
editor.commit();
2.取
SharedPreferences sp = = context.getSharedPreferences("mybound", Context.MODE_PRIVATE);
sp.getString("serial_no", "");
标签:
原文地址:http://www.cnblogs.com/ponos/p/4330944.html