how can I use internal resource (e.g. R.id.myImage01) as an email attachment?
- by Azam
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.
Context context = getApplicationContext();
String imagePath = context.getFilesDir() + "/" + "myImage01.png";
emailIntent.putExtra(android.content.Intent.EXTRA_STREAM, Uri.parse(imagePath));
Thanks
Azam