I am trying to send email programmatically. I am taking the input from a editText box and putting them into an array so they can be displayed in the TO field. But, it shows duplicate values and I have to click on one of them to make it a valid email address. How can I only display single value of the email address?

Below is the code:

Intent intent = new Intent(Intent.ACTION_SEND_MULTIPLE);
intent.putExtra(Intent.EXTRA_EMAIL, new String[] {recipient});

Appreciate your assistance in advance.

- - - Updated - - -

above is the image for the compose email window