>From the documentation, I am afraid there is kind of a limitation: "Input: getType() is the MIME type of the data being sent. get*Extra can have either a EXTRA_TEXT or EXTRA_STREAM field, containing the data to be sent. If using EXTRA_TEXT, the MIME type should be "text/ plain"; otherwise it should be the MIME type of the data in EXTRA_STREAM. Use */* if the MIME type is unknown (this will only allow senders that can handle generic data streams). " Maybe you can set EITHER a text OR a media (XOR). Did you try not using the media part, and replace the mime type by text/plain ?
On Jan 31, 2:02 pm, jj <[email protected]> wrote: > Hello > I am sending image using following. the image successfully send by > application. But The subject and text r not getting added to email. > > I want to add body containing some hyperlink, I am doing this > Intent.EXTRA_TEXT but it is not going to added. > > Will somebody will clear suggest me for. None of EXTRA working > (subject, title, text); > > Uri uri = ContentUris.withAppendedId(Media.EXTERNAL_CONTENT_URI, 2); > > Intent i = new Intent(); > > i.setAction(Intent.ACTION_SEND); > i.setType("image/jpeg"); > > i.putExtra(Intent.EXTRA_SUBJECT, "jigsaw"); > i.putExtra(Intent.EXTRA_TEXT, "http://code.google.com/ > android"); > > i.putExtra(Intent.EXTRA_TITLE, "ETitle"); > i.putExtra(Intent.EXTRA_STREAM, uri); > i = Intent.createChooser(i, "Send"); > startActivity(i); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

