Quantcast
Viewing all articles
Browse latest Browse all 8068

Android Emailing a File downloaded from a server

I have downloaded a file and need to email that file (using gmail account). I try to save the file on tempDirectory and application data directory etc and then attaching the file in email. I can see the mail view have file attached.

Now when I sent email using gmail, it says "Couldn't sent attachment". The possible reason could be gmail cannot read app temp or data directory.

Option I have is copy that file to external storage and then attach the file. I can do on Ti.Filesystem.externalStorageDirectory but not all android device has SD cards.

Please suggest where I can copy this file so that gmail program can read it and it can work on all android devices.


Viewing all articles
Browse latest Browse all 8068

Trending Articles