Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/5.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 Gallery应用程序-由于没有输入,无法选择图像_Android_Gallery_Image - Fatal编程技术网

Android Gallery应用程序-由于没有输入,无法选择图像

Android Gallery应用程序-由于没有输入,无法选择图像,android,gallery,image,Android,Gallery,Image,我目前正在开发一个应用程序,允许用户通过在android gallery中选择图片上传图片。这似乎适用于大多数android手机,但某些手机存在一些问题。在LG Optimus Elite上,当加载多媒体资料以选择图像时,它不接受任何触摸。我可以看到图片和图库,但我不能选择任何内容。它几乎像是被冻住了。在这一点上我无能为力,甚至连按“返回”按钮都不行 以下是启动gallery的代码: Intent i = new Intent(Intent.ACTION_GET_CONTENT, null);

我目前正在开发一个应用程序,允许用户通过在android gallery中选择图片上传图片。这似乎适用于大多数android手机,但某些手机存在一些问题。在LG Optimus Elite上,当加载多媒体资料以选择图像时,它不接受任何触摸。我可以看到图片和图库,但我不能选择任何内容。它几乎像是被冻住了。在这一点上我无能为力,甚至连按“返回”按钮都不行

以下是启动gallery的代码:

Intent i = new Intent(Intent.ACTION_GET_CONTENT, null);
i.setType("image/*");
i.putExtra("return-data", true);
i.putExtra(Intent.EXTRA_LOCAL_ONLY, true);
startActivityForResult(i, REQUEST_GALLERY_PICTURE);
如有任何意见,将不胜感激

谢谢你使用这个 开馆

  Intent i = new Intent(Intent.ACTION_PICK,android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);

   startActivityForResult(i, RESULT_LOAD_IMAGE);

抱歉,我花了这么长时间才回复,但我能够使用您的方法解决问题。