如何获取Android手机库中实用的图像的所有详细信息 [英] How to get all details of an image pragmatically available in Android phone gallery
问题描述
我正在尝试获取手机图库中图像可用的所有详细信息(特别是位置).当用户单击详细信息时,这些详细信息就会出现.所以,请告诉我我该怎么做.请参阅屏幕截图以更好地理解.预先感谢
I am trying to fetch all details (specially location) available with image in phone gallery.Those will come when user click on details. So please tell me how can i do this. Refer screenshots for better understanding. Thanks in advance
推荐答案
您可以使用android的 ExifInterface 来执行此操作. 这是用于在JPEG文件或RAW图像文件中读写Exif标记的类. 支持的格式有:JPEG,DNG,CR2,NEF,NRW,ARW,RW2,ORF和RAF.
you can use android's ExifInterface for doing this. This is a class for reading and writing Exif tags in a JPEG file or a RAW image file. Supported formats are: JPEG, DNG, CR2, NEF, NRW, ARW, RW2, ORF and RAF.
从此处引用 Android ExifInterface
这篇关于如何获取Android手机库中实用的图像的所有详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!