1. Check out our companion app, Forums for Android! Download from Google Play

Attach multiple images to MMS message through Intent

Discussion in 'Application Development' started by infopruthibi, Jun 14, 2010.

  1. infopruthibi

    infopruthibi Member
    Thread Starter
    5

    May 6, 2010
    6
    0
    5
    Hi,
    I am newbie to Android development and am facing a problem of attaching multiple images to MMS message through intent means.
    Basically, I have a gallery like application where I can select multiple photos and am trying to share using MMS.
    I want to launch MMS activity screen with all the photos selected in the message body from my application.
    However, I am able to attach only one image using Intent.ACTION_SEND.
    I am working on Android 1.5 and it seems that Intent.ACTION_SEND_MULTIPLE in supported in this version.

    My code snippet on configuration of Intent is as below:

    Intent intent = new Intent(Intent.ACTION_SEND);
    intent.putExtra("sms_body", "xxx");
    intent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(new File(URI)));
    intent.setType("image/*");
    startActivity(intent);

    Any suggestions on workaround this will be highly appreciated.

    Thanks and Regards,
    Pruthibi
     

    Advertisement

Share This Page

Loading...