これは、ビデオをアップロードするための私のコードです:
Intent shareIntent =new Intent();
shareIntent.setAction(Intent.ACTION_SEND);
shareIntent.putExtra(Intent.EXTRA_SUBJECT, "Share");
String photoURL="sdcard/DCIM/Camera/20120518_165039.mp4";
File file = new File(photoURL);
shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file));
shareIntent.setType("video/*");
startActivity(Intent.createChooser(shareIntent, "Share"));
実行すると、アップロードする YouTube を選択すると、エラー ダイアログが表示されます 。熟成させてみてください。
これはログです:
誰がそれを解決する方法を知っていますか?