I have an activity and it wishes to send a file(stored on SD card) as an email attachment.
So , I create an intent with Action = ACTION_SEND :
I populate the "To" and "Subject" fields using Intents "putExtra" methods:
I have the file that I need send as attachment in a FileInputStream, how do I attach it to email?
I think i can attach it using
Will this code work?
I tried running my code and when this logic was triggered an email editor was launched(No subject/ To fields were populated).
Is there a problem with emulator(specifically with its default email client?)