I'm create an app which is record video and share it.
For sharing i use Droid share functionality and it works.
In that email,facebook,skype,etc working perfect but when select youtube that not upload my video.
following code i used for share.
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,"SUBJECT_NAME");
sharingIntent.setType("video/*");
File newFile = new File(video_path);
sharingIntent.putExtra(android.content.Intent.EXTRA_STREAM,Uri.fromFile(newFile));
startActivity(Intent.createChooser(sharingIntent,"Where you want to share?"));
.
stackoverflow.comm
No comments:
Post a Comment