Code example for EditText

Methods: length

0
      } 
    }; 
  } 
 
  private boolean validateInputs() { 
    if (usernameInput.length() == 0 || passwordInput.length() == 0
        || synckeyInput.length() == 0
        || (serverCheckbox.isChecked() && serverInput.length() == 0)) {
      return false; 
    } 
    return true; 
  } 
 
  /* 
   * Callback that handles auth based on success/failure 
   */ 
  private void authCallback() { 
    // Create and add account to AccountManager 
    // TODO: only allow one account to be added? 
    Log.d(LOG_TAG, "Using account manager " + mAccountManager);
    final Intent intent = createAccount(mContext, mAccountManager,