Code example for MultiAutoCompleteTextView

Methods: setText

0
	        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 { 
	                locationTV.setText("USA");
	            } 
	        } 
        }); 
 
        Button submitButton = (Button) findViewById(R.id.submitButton);
        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
		    	boolean pwPass = true;