Code example for EditText

Methods: getTextsetEnabled

0
   * accessed by Fennec and Sync Service. 
   */ 
  public void connectClickHandler(View target) {
    Log.d(LOG_TAG, "connectClickHandler for view " + target);
    username = usernameInput.getText().toString();
    password = passwordInput.getText().toString();
    key = synckeyInput.getText().toString();
    if (serverCheckbox.isChecked()) {
      server = serverInput.getText().toString();
    } 
    enableCredEntry(false); 
 
    // TODO : Authenticate with Sync Service, once implemented, with 
    // onAuthSuccess as callback 
 
    authCallback(); 
  } 
 
  /* Helper UI functions */ 
  private void enableCredEntry(boolean toEnable) {
    usernameInput.setEnabled(toEnable);
    passwordInput.setEnabled(toEnable);
    synckeyInput.setEnabled(toEnable);
    if (!toEnable) {
      serverInput.setEnabled(toEnable);
    } else { 
      serverInput.setEnabled(serverCheckbox.isChecked());