Use the source, Luke! OI File Manager ( http://www.openintents.org/en/node/159 ) can do this, so there is a good chance that you will find enlightment there :-)
http://code.google.com/p/openintents/source/browse/trunk/FileManager/src/org/openintents/filemanager/FileManagerActivity.java It is actually 2 extra lines: sendIntent.setType("audio/mp3"); sendIntent.putExtra(Intent.EXTRA_STREAM, "file:///sdcard/mysong.mp3"); I've now posted this on the OI page as well: http://www.openintents.org/en/node/121 Peli www.openintents.org On 12 Dez., 20:10, blindfold <[email protected]> wrote: > I'd love to see that one extra line in your example that shows how to > add an image file attachment with the image file stored on the SD > card. :-) > > On Dec 12, 3:42 pm, Peli <[email protected]> wrote: > > > From that link:http://www.openintents.org/en/node/121Icopy and > > paste it here: > > > Intent sendIntent = new Intent(Intent.ACTION_SEND); > > sendIntent.putExtra(Intent.EXTRA_TEXT, "email text"); > > sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Subject"); > > sendIntent.setType("message/rfc822"); > > startActivity(Intent.createChooser(sendIntent, "Title:")); --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

