code: @Override
      public boolean onKeyPreIme(int keyCode, KeyEvent event) {
          if (TextUtils.isEmpty(getText().toString())
                  && keyCode == KeyEvent.KEYCODE_DEL)
              return true;
          else
              return super.onKeyPreIme(keyCode, event);
      }
docs: Don't send delete key so edit text doesn't capture it and close error