texts are not adding to intent for email

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

texts are not adding to intent for email

Postby jagtap.jj1 » Sat Jan 31, 2009 2:06 pm

Hello
I am sending image using following. the image successfully send by application. But The subject and text r not getting added to email. The email is got successfully to receiver. But it no contain body and subject(specified with intent.EXTRA_TEXT and intent.EXTRA_SUBJECT).

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);
java-android developer
User avatar
jagtap.jj1
Senior Developer
Senior Developer
 
Posts: 124
Joined: Fri Aug 22, 2008 11:52 am
Location: India(Mumbai)

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 8 guests