Code example for MultiAutoCompleteTextView

Methods: setText

	        public void onClick(View v) {
	            // Perform action on clicks, depending on whether it's now checked 
	            if (((CheckBox) currentLocationCB).isChecked()) {
	                locationTV.setText("CURRENT LOCATION");
	            } else { 
        Button submitButton = (Button) findViewById(;
        submitButton.setOnClickListener(new OnClickListener() {
		    public void onClick(View v) {
		        String email = emailET.getText().toString();
		        String username = usernameET.getText().toString();
		        String password = passwordET.getText().toString();
		        String cpassword = cpasswordET.getText().toString();
		        String location = locationTV.getText().toString();
		    	boolean pass = true; //used to check that all inputs are valid
Connect your IDE to all the code out there  Get Codota for Java