@Override protected void preLoadData(Bundle savedInstanceState) { super.preLoadData(savedInstanceState); account = AccountProxy.getInstance().getCurrentAccount(); /** 获取身体状况资料 */ mBodyStateTask = new EditQAHealthTask(account.getAccessToken(), null, null, null, true, "sick_"); mBodyStateTask.setProgress( new CustomDialogProgress(this, getString(string.punlic_personal_loading))); mBodyStateTask.setTaskHost( new TaskHost() { @Override public void onPostExecute(int requestCode, BaseResult result) { super.onPostExecute(requestCode, result); switch (result.getErrorCode()) { case LocalCode.CODE_SUCCESS: bodyStates = QAHealth.createQAHealthList((NetworkClientResult) result); AccountPreference.getInstance().saveBodyState(bodyStates); fillView(); break; default: ErrorDialogUtil.showErrorToast( SettingChangeBodyStateActivity.this, CloudStatusCodeProxy.TYPE_SETTING, result.getErrorCode()); finish(); break; } } }); mBodyStateTask.execute(); }
@Override protected void preLoadData(Bundle savedInstanceState) { super.preLoadData(savedInstanceState); PropertyCenter.getInstance().addPropertyChangeListener(this); controller = new ClockController(); }
@Override protected void preLoadData(Bundle savedInstanceState) { super.preLoadData(savedInstanceState); currentAccount = AccountProxy.getInstance().getCurrentAccount(); agent = new FeedbackAgent(this); }