I am developing an android app which sends an email to the different people based on selection made
So I want the TO field of the email to be changed based upon the selection made.
So I am loading the email id into a string called emailaddress after the selections are made
Now I kept as follows
Intent i = new Intent(Intent.ACTION_SEND);
i.setType("text/plain");
i.setType("application/octet-stream");
i.putExtra(Intent.EXTRA_EMAIL ,emailaddress);
But the TO address is being left blank. I confirmed that email address is loading into the string by a toast but it is simply not appearing the TO 🙁
How to solve this problem?
Thanking You
Yours Sincerely,
ChinniKrishna Kothapalli
You have a bug in EXTRA_EMAIL, because it accepts only String[] parameter instead String. Example: