Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/192.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 我能';不要把视频上传到YouTube上_Android_Video_Youtube - Fatal编程技术网

Android 我能';不要把视频上传到YouTube上

Android 我能';不要把视频上传到YouTube上,android,video,youtube,Android,Video,Youtube,这是我上传视频的代码: 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.putEx

这是我上传视频的代码:

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进行上传,然后它将显示一个错误对话框: 我上传的应用程序(process com.google.android.apps.uploader)意外停止。请尝试老化。

这是日志:
谁知道如何解决这个问题?

进入
设置>应用程序>管理应用程序>所有应用程序>向下滚动列表>我的上传(如果找不到>com.google.Android.apps.uploader)清除数据


这就是你所要做的一切,对于那些在发送过程中遇到困难但没有完成MSG发送的上传,我在Android论坛上找到了这个答案。该应用程序在我的Droid手机设置中称为“我的上传”

进入
设置>应用程序>管理应用程序>所有应用程序>向下滚动列表,以>我的上传(如果找不到>com.google.Android.apps.uploader)清除数据


这就是你所要做的一切,对于那些在发送过程中遇到困难但没有完成MSG发送的上传,我在Android论坛上找到了这个答案。该应用程序在我的Droid手机设置中称为“我的上传”

尝试使用Asynch方法进行处理,因为您在这里写的错误显示应用程序正在生成ANR对话框(如果线程在5秒内没有响应,则在android中调用ANR),但是这个问题无法解决~~尝试使用异步方法进行处理,因为您在这里写的错误显示应用程序正在生成ANR对话框(如果线程在5秒内没有响应,则在android中调用ANR)。我使用线程,但问题无法解决~~