@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mContext = this; BaseApplication.addActivity(this); baseAttribute = new ActivityBaseAttribute(this); onInitAttribute(baseAttribute); baseAttribute.setContentView(); toastManager = ToastManager.getInstance(getApplicationContext()); onInitBaseActivity(); addCallbackEventListener(EventCode.CALLBACK_APPLICATION_NOTIFICATION_TO_ACTIVITY); addCallbackEventListener(EventCode.CALLBACK_SAME_ACCOUNT_ANOTHER_PLACE_LOGIN); addCallbackEventListener(EventCode.CALLBACK_IN_FRAGMENT_TASK_ACTIVITY_THAT_NET_ERROR); }