@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); orm = QiupuORM.getInstance(mActivity); mHandler = new MainHandler(); asyncQiupu = new AsyncQiupu(ConfigurationContext.getInstance(), null, null); QiupuHelper.registerUserListener(getClass().getName(), this); width = this.getResources().getDisplayMetrics().widthPixels; if (mCallBackListener != null) { mUser = mCallBackListener.getUserInfo(); } if (mUser == null) { mUser = new QiupuUser(); } }
@Override public void onDestroy() { super.onDestroy(); // serialization(); QiupuHelper.unregisterUserListener(getClass().getName()); }