I think the MIME type has to be the one for the EXTRA_STREAM content.
On Tue, Aug 30, 2011 at 3:26 PM, bob <bob@coolgroups.com> wrote:
> 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);
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Android Training...At Your Office: http://commonsware.com/training
--
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