@Override public void onTaskFinished(SHTask task) throws Exception { // TODO Auto-generated method stub SHDialog.dismissProgressDiaolg(); if (task == deleteTask) { SHToast.showToast(getActivity(), "刪除成功!", 1000); getActivity().finish(); } else { SHToast.showToast(getActivity(), "保存成功!", 1000); System.out.println(task.getResult().toString()); getActivity().finish(); } }
@Override public void onTaskFailed(SHTask task) { // TODO Auto-generated method stub SHDialog.dismissProgressDiaolg(); SHDialog.showOneKeyDialog(getActivity(), task.getRespInfo().getMessage(), null); }