How to handle try catch exception android

后端 未结 5 2033
滥情空心
滥情空心 2020-12-31 11:24

I am using a method getBitmap to display images. As I am using this as a method,if it returns bitmap display an image but if it returns null,catch an exception. But if url e

5条回答
  •  孤城傲影
    2020-12-31 12:13

    Return a default bitmap from your res. But there is a very good library for working with bitmap called Universal Image Loader, check it out.

提交回复
热议问题