0

In Android there seems to be two different way of reading an image's metadata. I know that image's EXIF has data such as timestamp, orientation, gps tag, etc on it, but apparently, you could get the same information through MediaStore, per Android's documentation: developer.android.com/reference/android/provider/MediaStore.Images.ImageColumns.html

What's the difference between the two? Can it be safely assumed that data from both will ALWAYS be the same?

4

1 回答 1

3

两者有什么区别?

MediaStore信息包含一些 EXIF 数据的缓存副本,以及其他元数据。

可以安全地假设两者的数据总是相同的吗?

不。如果MediaStore最新的,那么是的。但是,图像是文件。可以更改文件。如果MediaStore索引图像文件处于状态 A,那么某些东西会将图像文件修改为状态 B,除非某些东西导致MediaStore更新其缓存,否则它们将不同步。

于 2013-07-12T22:34:18.323 回答