I am using below code to send email to gmail.Here , i am directly open compose mail of the gmail.it's worked fine.but i need to attache file to that mail.How can i do ? Please can any one help me?
Here my code is:
Intent send = new Intent(Intent.ACTION_SENDTO);
String uriText = "mailto:" + Uri.encode("user@gmail.com") +
"?subject=" + Uri.encode("Testing app") +
"&body=" + Uri.encode("Hi,this is android app testing");
Uri uri = Uri.parse(uriText);
send.setData(uri);
startActivity(Intent.createChooser(send, "Send mail..."));
Thanking in Advance.