can i get image file width and height from uri in android?

前端 未结 10 2055
深忆病人
深忆病人 2020-12-08 01:58

i can getting the image width through MediaStore.Images.Media normally

but i need to getting the image width and height from image which selected from d

10条回答
  •  时光说笑
    2020-12-08 03:00

    the solution is use new File(uri.getPath()).getAbsolutePath() instead of uri.toString()

提交回复
热议问题