Is there any tutorial (step by step) that I can easily follow to send image in png or gif type from drawable in android. I just need to get the image/gif from the drawable and transfer it to MMS system, no need to send the MMS within my app. Just to get the images/gif and attach it automatically to MMS system. I really appreciate simple and clear tutorial on this. :) Thank you.
EDIT:
I have found a segment code like this: Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.setClassName("com.android.mms", "com.android.mms.ui.ComposeMessageActivity"); sendIntent.putExtra("sms_body", "some text");
Uri uri = Uri.parse("android.resource://najmudin.nazrinakmal.signspeak/drawable/" + gif_source);
try {
InputStream stream = getContentResolver().openInputStream(uri);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
sendIntent.putExtra(Intent.EXTRA_STREAM, uri);
sendIntent.setType("image/gif");
startActivity(sendIntent);
but when I run this I got the message: "sorry you cannot add this picture to your message"
what did I do wrong here and is there anything missing in my manifest file?