-2

Possible Duplicate:
How to send image via MMS in Android?

How can I send a picture from android application via MMS? I found this code but I don't know how can I insert picture inside it when a user take the picture from Gallery of the mobile?

Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra("sms_body", "some text");
sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(url));
sendIntent.setType("image/png");
Community
  • 1
  • 1
Monerah
  • 215
  • 1
  • 5
  • 17

1 Answers1

0

Searching Google is a good way to find answers to questions like this.

What you want to do is call startActivityForResult() to allow the user to pick a photo, then in onActivityResult() send the intent with the selected photo. See this: android pick images from gallery

Community
  • 1
  • 1
howettl
  • 12,419
  • 13
  • 56
  • 91