Unable To Send Email With Attachments From My App Using Intents (gmail)
I'm trying to send files (.log files) contained in a sdcard's folder using Intent. This is the code: public void sendMail() { Intent intent = new Intent(Intent.ACTION_S
Solution 1:
Ok. i find the solution. Need to replace this:
for (String file : logfolder.list()){
Uri u = Uri.parse(file);
uris.add(u);
}
with this:
for (File file : logfolder.listFiles()){
Uri u = Uri.fromFile(file);
uris.add(u);
}
Post a Comment for "Unable To Send Email With Attachments From My App Using Intents (gmail)"