BitmapFactory.decodeStream(InputStream is) returns null for non null InputStream on Android

后端 未结 3 1274
没有蜡笔的小新
没有蜡笔的小新 2020-12-06 19:54

I\'m developing an Android application, and it\'s view is containing multiple Gallerys. The content of the Gallerys (the Bitmaps) are red from the Internet.

For the

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-06 20:28

    public static Bitmap decodeStream (InputStream is)
    

    Returns

    The decoded bitmap, or null if the image data could not be decoded.

    Did you check that you're not getting some 404 error or similar instead of the image?

提交回复
热议问题