您的位置:首页 > 运维架构

BitmapFactory.Options outHeight and outWidth returning -1 for large images

2016-08-25 15:05 330 查看
1M左右或以下的图片都报错
The issue was that the images were from Picasa, so they weren't stored on the SD, creating a NullPointerException.
You can set intent.putExtra(Intent.EXTRA_LOCAL_ONLY, true) before launching the activity to restrict items in the Gallery only to those on the SD card. I'll post a better solution if I find one.

在8M的图片时不报错,还要继续试验以下
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  图片
相关文章推荐