@Override
 public void handleMessage(Message msg) {
   if (msg.what == USER_ADDED_ACCOUNT_SUCCESS_CODE) {
     try {
       if (null != dialog) {
         dialog.dismiss();
       }
       finish();
     } catch (Exception e) {
       e.printStackTrace();
     }
   } else if (msg.what == USER_ADDED_ACCOUNT_FAILED_CODE) {
     if (null != dialog) {
       dialog.dismiss();
     }
     LewaConnectionAlertDialog alertDailog =
         new LewaConnectionAlertDialog(LewaLoginActivity.this);
     alertDailog.prepareBuilder(
         getString(R.string.alert_dialog_login_failed),
         getString(R.string.alert_dialog_login_failed_result),
         null,
         getString(R.string.label_back));
     alertDailog.showAlertDialog(null);
   }
 }
 public void lock(boolean force) {
   helper = new LewaConnectionAlertDialog(this, this);
   helper.prepareBuilder(
       getString(R.string.label_internet_connection),
       getString(R.string.error_internet_connectivity),
       getString(R.string.label_retry),
       getString(R.string.label_back));
   helper.loopDialog(force);
 }