I think it has to be a local Uri (e.g., file:/// or content://). Also,
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 <[email protected]> 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[]
> {"[email protected]"});
>        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 [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

Reply via email to