机器人 - 图片选择器不能在Kindle Fire的工作吗? [英] Android - Image picker doesn't work on Kindle Fire?

查看:149
本文介绍了机器人 - 图片选择器不能在Kindle Fire的工作吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下的code以显示imagepicker。 之后用户选择图像onActivityResult被调用,来回报我的数据选定的图像。

在点燃不过,我得到0的结果code和数据为空。 在其他人之前已经注意到了这个问题? 这个问题只发生在Kindle Fire的。

  startActivityForResult(新意图(Intent.ACTION_PICK,android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI),SELECT_PICTURE);
 

解决方案

我运行到这一完全相同的问题。在此之前的最近的Kindle Fire的更新,这几天前发生的事情对我来说,从库中挑选图片的工作对我罚款。 因此,最新的Kindle Fire的更新必须引入这个bug。

I have the following code to display an imagepicker. After user picks an image onActivityResult gets called, to return me the data for the selected image.

On kindle however, I get a resultCode of 0, and data as null. Anyone else has noticed this problem before? This problem happens only on kindle fire.

startActivityForResult(new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI), SELECT_PICTURE);

解决方案

I'm running into this exact same issue. Prior to the recent Kindle Fire update, which happened a few days ago for me, picking images from the gallery worked fine for me. So the most recent Kindle Fire update must have introduced this bug.

这篇关于机器人 - 图片选择器不能在Kindle Fire的工作吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆