Hi,

I am trying really hard to attach files to an email... but so far I
didn't manage to get it working, I have tried different things that I
found while searching for a solution, but I hadn't any luck so far...


If someone could help me out here, please, that would be great :)
Thanks in advance

Cheers


Here is what I have done...

String [] proj={MediaStore.Video.Media.DATA};
                                videocursor =
managedQuery( MediaStore.Video.Media.EXTERNAL_CONTENT_URI, proj,
null,null,null);
                                videocursor.moveToPosition(position);

                         Uri uri = Uri.parse("file://" +
videocursor.getString(0));

                        Intent sendIntent = new Intent(Intent.ACTION_SEND);
                        sendIntent.putExtra(Intent.EXTRA_STREAM, uri);
                        sendIntent.setType("video/3gp");
                        sendIntent.setType("video/mp4");
                        startActivity(sendIntent);
                        Log.d("EditGallerView path", uri.toString());


-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to