/** 显示帐号在别处登录dialog */
  private void showConflictDialog() {
    isConflictDialogShow = true;
    DemoHXSDKHelper.getInstance().logout(false, null);
    String st = getResources().getString(R.string.Logoff_notification);
    if (mycontext.isFinishing()) {
      // clear up global variables
      try {
        if (conflictBuilder == null)
          conflictBuilder = new android.app.AlertDialog.Builder(mycontext);
        conflictBuilder.setTitle(st);
        conflictBuilder.setMessage(R.string.connect_conflict);
        conflictBuilder.setPositiveButton(
            R.string.ok,
            new DialogInterface.OnClickListener() {

              @Override
              public void onClick(DialogInterface dialog, int which) {
                dialog.dismiss();
                conflictBuilder = null;
                finish();
                startActivity(new Intent(mycontext, LoginContainerActivity.class));
              }
            });
        conflictBuilder.setCancelable(false);
        conflictBuilder.create().show();
        isConflict = true;
      } catch (Exception e) {
        EMLog.e(TAG, "---------color conflictBuilder error" + e.getMessage());
      }
    }
  }
  /** 帐号被移除的dialog */
  private void showAccountRemovedDialog() {
    isAccountRemovedDialogShow = true;
    DemoHXSDKHelper.getInstance().logout(true, null);
    String st5 = getResources().getString(R.string.Remove_the_notification);
    if (!AugurContainerActivity.this.isFinishing()) {
      // clear up global variables
      try {
        if (accountRemovedBuilder == null)
          accountRemovedBuilder = new android.app.AlertDialog.Builder(AugurContainerActivity.this);
        accountRemovedBuilder.setTitle(st5);
        accountRemovedBuilder.setMessage(R.string.em_user_remove);
        accountRemovedBuilder.setPositiveButton(
            R.string.ok,
            new DialogInterface.OnClickListener() {

              @Override
              public void onClick(DialogInterface dialog, int which) {
                dialog.dismiss();
                accountRemovedBuilder = null;
                finish();
                startActivity(
                    new Intent(AugurContainerActivity.this, LoginContainerActivity.class));
              }
            });
        accountRemovedBuilder.setCancelable(false);
        accountRemovedBuilder.create().show();
        isCurrentAccountRemoved = true;
      } catch (Exception e) {
        EMLog.e(TAG, "---------color userRemovedBuilder error" + e.getMessage());
      }
    }
  }