search

Home  >  Q&A  >  body text

android - The bitmap obtained through BitmapFactory.decodeFile(picturePath) is null?

The correct path of the picture is obtained, but the bitmap obtained through BitmapFactory.decodeFile(picturePath) is null? What is the reason for this? Can anyone give me some advice? Thanks

PHP中文网PHP中文网2738 days ago530

reply all(1)I'll reply

  • 滿天的星座

    滿天的星座2017-05-16 13:23:11

    First check whether the file exists. If it does not exist, it will return null.

    reply
    0
  • Cancelreply