@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    mContext = this;

    getWindow().setFormat(PixelFormat.RGBA_8888);
    mStateAlert = new StateAlert(this);
    mStateAlert.setTitle(getResString(R.string.app_name));

    mCommonApplication = (CommonApplication) getApplicationContext();

    mClientAgent = new ClientAgent(BaseActivity.this, mStateAlert);
  }
 @Override
 protected void onDestroy() {
   super.onDestroy();
   mStateAlert.cancel();
 }