Deprecated “getBitmap” with API 29. Any alternative codes?

前端 未结 9 2230
渐次进展
渐次进展 2020-12-15 20:25

My onActivityResult is not working because getBitmap is deprecated, any alternative codes to achieve this?

here are the codes that needs to

9条回答
  •  死守一世寂寞
    2020-12-15 20:53

    Check the official doc:

    This method was deprecated in API level 29. loading of images should be performed through ImageDecoder#createSource(ContentResolver, Uri), which offers modern features like PostProcessor.

提交回复
热议问题