Tuesday, August 30, 2011

[android-developers] attachment never shows up

Can someone help me understand why the attachment never shows up
when I do this:


Intent intent = new Intent(Intent.ACTION_SEND);
intent.putExtra(Intent.EXTRA_SUBJECT, "Test single
attachment");
intent.putExtra(Intent.EXTRA_EMAIL, new String[]
{"test@test.com"});
intent.putExtra(Intent.EXTRA_TEXT, "Mail with an attachment");

intent.putExtra(Intent.EXTRA_STREAM,

Uri.parse("http://sites.google.com/site/coolfonne/_/rsrc/
1294092731055/home/coolfone.bmp?height=320&width=259
")


);
intent.setType("text/plain");

startActivity(intent);

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment