title: Image type issue in android
body: <p>On button click, I want to attach an image from drawable and send an email(from chooser).
  My button click works, email chooser opens. For example, Gmail opens and the image is attached. The problem is that the image doesn't have a proper extension. When the email is sent and the receiver downloads the attachment and renames it with <code>.jpg</code>. It perfectly works then. 
  I have posted the code below.
  I have added the project on GitHub.</p>
  
  <p>The link is <a href="https://github.com/TheKushalBhagat/EmailButton" rel="nofollow noreferrer">https://github.com/TheKushalBhagat/EmailButton</a>.
  You can download, work on it and please help me with the solution.</p>
  
  <p>My code:
  <a href="https://i.stack.imgur.com/82gMz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/82gMz.png" alt="Code"></a></p>