【问题标题】:I can't upload the video to YouTube我无法将视频上传到 YouTube
【发布时间】:2012-05-18 10:07:01
【问题描述】:

这是我上传视频的代码:

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)意外停止。请尝试老化。

这是日志: 谁知道怎么解决?

【问题讨论】:

  • 尝试使用异步方法执行您的过程因为您在此处写的错误表明应用程序正在生成 ANR 对话框(如果 Thread 在 5 秒内没有响应 ANR 在 android 中被调用)。
  • 我用thread,但是问题解决不了~~

标签: android video youtube


【解决方案1】:

转到settings> applications> manage applications> all apps> scroll down list to>my uploads (if you can't find> com.google.Android.apps.uploader) clear data

对于任何在发送时卡住但未完成发送 msgs 的上传,您只需要做这些。我在 Android 论坛上找到了这个答案。该应用程序在我的 Droid 手机设置中称为:“我的上传”。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-15
    • 1970-01-01
    • 2012-03-07
    • 2017-09-11
    • 2012-11-01
    • 2015-01-10
    • 2019-05-21
    • 2018-02-14
    相关资源
    最近更新 更多