インテントを使用してYouTubeにビデオをアップロードしようとしています.問題は、ビデオがYouTubeで共有されておらず、gmail、blutoothなどで完全に機能していないことです..私が使用しているコードは
Log.d("Share Example", "Share button is clicked");
String outputFile = pathOfSelected;
Log.d("Share Example", "outputFileURL: " + outputFile);
ContentValues content = new ContentValues(4);
content.put(Video.VideoColumns.TITLE, "My Test");
content.put(Video.VideoColumns.DATE_ADDED,
System.currentTimeMillis() / 1000);
content.put(Video.Media.MIME_TYPE, "video/mp4");
content.put(MediaStore.Video.Media.DATA, outputFile);
ContentResolver resolver = getContentResolver();
Uri uri = resolver.insert(MediaStore.Video.Media.EXTERNAL_CONTENT_URI,
content);
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("video/*");
intent.putExtra(Intent.EXTRA_STREAM, uri);
startActivity(Intent.createChooser(intent, "Share using"));
誰か整理するの手伝ってください