Skip to content Skip to sidebar Skip to footer

Email Intent Sends Text File Rather Than Image

This the code I am using to take picture, display it, then send it in an email: private void takePicture() { Intent intent = new Intent('android.media.action.IMAGE_CAPTURE');

Solution 1:

I suspect this has happened to more than one person, but the problem was this:

I had to add +".jpg" to the end of the filename, and now it works. This may have been a simple solution but it surely was a distressful problem!

Hope this post still helps those who encounter this issue in the future.

Post a Comment for "Email Intent Sends Text File Rather Than Image"