@Override protected void onDestroy() { super.onDestroy(); MainService.removeActivity(this); if (statusService != null && currentStatus != null) { statusService.emptyStatusDb(); statusService.insertListStatus(currentStatus); statusService.closeDBHelper(); } }
private void initData() { isRefresh = false; statusService = new MySignUpStatusService(this); currentStatus = statusService.getListStatus(); getStatusFromTask(Task.TA_GETSTATUS_MODE_FIRSTTIME, null); }