@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); } }
@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; }