SpUtils
/**保存数据**/
SpUtils utils = new SpUtils(getContext(), "config");
utils.put("shopName", shopBean.getShopName());
utils.put("shopId", shopBean.getShopId());
utils.put("areaId", shopBean.getAreaId());
//提取数据
SpUtils sp = new SpUtils(getContext(), "config");
//config没有数据,则不会执行
shopId = Integer.parseInt(sp.getString("shopId"));
areaId = Integer.parseInt(sp.getString("areaId"));