Search code examples
androidfilebitmapandroid-contentprovider

How to get the picture's shooting time in android development?


String picPath = "/mnt/sdcard/yepcolor/sina.png";
Bitmap bitmap = BitmapFactory.decodeFile(picPath);

I know the 'picPath' of the picture.Now, I want to get the picture's shooting time,and what should I do?Thanks.


Solution

  • As far as I know, png files doesn't contain such information. If you are reading jpeg files, however, you can use ExifInterface.