示例#1
0
 @Override
 public void saveData(JSONObject data) {
   try {
     AppNote_sp tAsp = new AppNote_sp(getApplicationContext());
     AppNote_Bean tAppNote = tAsp.read();
     tAppNote.savePageData(getClass().getName(), data);
     tAsp.write(tAppNote);
   } catch (Exception e) {
     ExceptionHandle.ignoreException(e);
   }
 }
示例#2
0
 @Override
 public JSONObject readData() {
   JSONObject result = new JSONObject();
   try {
     AppNote_sp tAsp = new AppNote_sp(getApplicationContext());
     AppNote_Bean tAppNote = tAsp.read();
     result = tAppNote.readPageData(getClass().getName());
   } catch (Exception e) {
     ExceptionHandle.ignoreException(e);
   }
   return result;
 }