这是我上传视频的代码:
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 上传,然后它会显示一个错误对话框: 应用程序“我的上传”(进程 com.google.android.apps.uploader)意外停止。请尝试老化。
这是日志: 谁知道怎么解决?
最佳答案
转到设置>应用>管理应用>所有应用>向下滚动列表>我的上传(如果找不到> com.google.Android.apps.uploader)清除数据
对于任何卡在发送但未完成发送消息的上传,这就是您要做的所有事情。我在 Android 论坛上找到了这个答案。该应用程序在我的 Droid 手机设置中被称为:“我的上传”。
关于android - 我无法将视频上传到 YouTube,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10650620/