I've a registration form activity in android, in which I want to display Toast message after completion of text field etName. Problem is it is displaying toast message as I go on editing the field, I want to display only one toast message that too after writing whole name. Below is the code.

```
    etName.addTextChangedListener(new TextWatcher() {
        @Override
        public void beforeTextChanged(CharSequence s, int start, int count, int after) {

        }

        @Override
        public void onTextChanged(CharSequence s, int start, int before, int count) {

        }

        @Override
        public void afterTextChanged(Editable s) {
            Toast.makeText(getActivity(), "Hi, "+ etName.getText().toString() +" !", Toast.LENGTH_SHORT).show();
        }
    });

```