0

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?

Chrisantics
  • 155
  • 2
  • 16
  • refer these links...try them http://stackoverflow.com/questions/2972845/how-to-send-image-via-mms-in-android http://matrix-examplecode.blogspot.in/2011/08/send-mms-example.html – GvSharma Apr 16 '14 at 04:12
  • @GVSharma I have edited my question. perhaps you can help? thanks! – Chrisantics Apr 16 '14 at 12:53

0 Answers0