how can I use internal resource (e.g. R.id.myImage01) as an email attachment?
<p>how can I use internal resource (e.g. R.drawable.myImage01) as an email attachment?
I tried the following code. It shows the file is attach but actually the email gets send without any attachment.</p>

<pre><code>Context context = getApplicationContext();   
String imagePath = context.getFilesDir() + "/" + "myImage01.png";
emailIntent.putExtra(android.content.Intent.EXTRA_STREAM, Uri.parse(imagePath));
</code></pre>

<p>Thanks
Azam</p>
