Code example for EditText

Methods: getTextsetError

0
			mPortText.setError("the port is not valid");
		} else { 
			mPortText.setError(null);
		} 
 
		if (!Validator.validateString(mPasswordText.getText().toString())) {
			valid = false;
			mPasswordText.setError("the password is not valid");
		} else { 
			mPasswordText.setError(null);
		} 
 
		if (!valid) {
			alert("Could not send command", "Not sending command, some parameters are invalid."); 
		} 
 
		return valid;
	} 
 
	private void addTagOrSetting(CmusStatus cmusStatus, String line) {
		int firstSpace = line.indexOf(' ');