| | |
| | | import android.text.TextUtils; |
| | | |
| | | import com.google.gson.Gson; |
| | | import com.hdl.photovoltaic.HDLApp; |
| | | import com.hdl.photovoltaic.other.HdlFileLogic; |
| | | import com.hdl.photovoltaic.other.HdlLogLogic; |
| | | import com.hdl.photovoltaic.other.HdlResidenceLogic; |
| | | import com.hdl.photovoltaic.ui.bean.HouseInfoBean; |
| | | import com.hdl.photovoltaic.utils.SharedPreUtils; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | |
| | | */ |
| | | private void reFresh() { |
| | | String str = HdlFileLogic.getInstance().readFile(FILENAME); |
| | | // String str =SharedPreUtils.getSharedPreferencesKey("UserConfigManage.json",HDLApp.getInstance()); |
| | | if (!TextUtils.isEmpty(str) && str.length() > 0) { |
| | | //读取保存的数据 |
| | | Gson gson = new Gson(); |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 保存 |
| | |
| | | Gson gson = new Gson(); |
| | | String json = gson.toJson(sUserConfigManage); |
| | | HdlFileLogic.getInstance().writeFile(FILENAME, json); |
| | | // SharedPreUtils.saveMyDataInfo("UserConfigManage.json", json, HDLApp.getInstance()); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// Config文件名 |
| | | /// </summary> |