How to convert any Object to String?

Here is my code:

for (String toEmail : toEmailList)          
{
    Log.i("GMail","toEmail: "+toEmail);
    emailMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(toEmail));      
}

Please give me some suggestion about this.

Leave a Comment