标签:取数据 ble get text name world contex context gets
//存数据
spCount = context.getSharedPreferences("counter", Context.MODE_WORLD_READABLE);
editor= spCount.edit();
editor.putString("username", "alex");
editor.commit();
//取数据
spCount = getSharedPreferences("counter", Context.MODE_WORLD_READABLE);
String userName= spCount.getString("username", "");
标签:取数据 ble get text name world contex context gets
原文地址:http://www.cnblogs.com/452035305qq/p/7472315.html