Did you try putExtra(Intent.EXTRA_STREAM, uri) ? // the following code snippet will attach a file from a content resolver and send it via email/mms.
Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.setType("..."); sendIntent.putExtra(Intent.EXTRA_STREAM, uri); // attachment sendIntent.putExtra(Intent.EXTRA_SUBJECT, getResources().getText (R.string.subject)); startActivityForResult(Intent.createChooser(sendIntent, getResources ().getText(R.string.app_name)), ACTIVITY_SEND); Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 3, 7:41 am, Chris Stratton <cs07...@gmail.com> wrote: > On Sep 3, 10:13 am, David Given <d...@cowlark.com> wrote: > > > We've got it *nearly* working; I can see GMail call query() on my > > ContentProvider, followed shortly by GMail crashing because I'm not > > providing the right fields in the cursor. > > > The thing is --- what's GMail expecting to see? I can't find any > > documentation on this. > > I wonder if its expectations are close enough to those of the sources- > provided non-gmail "Email" application that you could debug it against > that and then switch back to gmail? --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---