Home » Android » android – How to get metadata from a picture?

android – How to get metadata from a picture?

Posted by: admin May 14, 2020 Leave a comment


I am browsing the web but no way to find how to get metadata from a picture.

Does anyone has an idea ?

I can’t see anything in the Bitmap/BitmapFactory/BitmapFactory.Options documentation that would give me a hint.

I would like to retrieve standard information such as :

  • name
  • date it was taken
  • dimension
  • size

and maybe more.

Any idea ?

How to&Answers:

You can get at least the size of the image by setting BitmapFactory.Options.inJustDecodeBounds to true.

If the image is in the MediaStore, you might be able to get more information.


According to this thread


you have to use ImageManager