Android BitmapFactory.decodeFile() 方法返回 null
我面临位图对象创建的问题。
当我调用 BitmapFactory.decodeFile(imageFullPath) 时,它返回 null。我尝试了可用的解决方案,例如提供完整的图像路径。但我没有得到解决方案。
谁能告诉我为什么它返回 null?
根据开发人员文档,如果路径不可用或无法解码,BitmapFactory.decodeFile(imageFullPath) 将返回 null。
就我而言,我面临这个问题是因为第二个(无法解码)。
所以请有人告诉我如何避免这种情况。?
提前致谢。
I am facing an issue with Bitmap object creation.
When i call the BitmapFactory.decodeFile(imageFullPath) it returns null.I tried with the available solutions like giving complete image path.But I didn't get the solution.
Can any one please tell me why it is returning null.?
According to the Developer docs BitmapFactory.decodeFile(imageFullPath) will return null if the path is not available or if unable to decode.
In my case I am facing this because of Second one(Unable to Decode).
So Please anyone tell me How can I avoid this.?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论