1

I am sending a sms to multiple recipients using Intent.ACTION_SENDTO

        Intent intent = new Intent(Intent.ACTION_SENDTO);
        intent.putExtra(Intent.EXTRA_TEXT, strMessage);
        intent.setData(Uri.parse("smsto:" + Uri.encode(getPhoneNumbers())));
        startActivity(intent);

However now I want to add a image to the sms. Is there any way to do this with Intent.ACTION_SENDTO I tried adding below code with no success....

Uri path = Uri.parse("android.resource://packagename/" + R.drawable.icon);
        intent.putExtra(Intent.EXTRA_STREAM, path);
        intent.setType("image/png");
user1163234
  • 2,407
  • 6
  • 35
  • 63
  • Possible duplicate http://stackoverflow.com/questions/22537933/android-how-to-attach-a-resource-drawable-to-an-email – Pankaj Kumar Mar 16 '15 at 10:43
  • Possible duplicate of [Sending email with attachment using SENDTO on some devices doesn't work](http://stackoverflow.com/questions/15946297/sending-email-with-attachment-using-sendto-on-some-devices-doesnt-work) – Marius Kaunietis Dec 09 '15 at 17:49

0 Answers0