I’m making an Android app that includes a feature to show images on a map.
How can I extract the location data from a .jpg file (if there is location data)?
Many thanks, Todd.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is nice tutorial how to access exif data (that includes GPS info you need) from jpg that can help you:
http://android-coding.blogspot.com/2011/10/read-exif-of-jpg-file-using.html
The corresponding class is described in official docs:
http://developer.android.com/reference/android/media/ExifInterface.html
Also useful post (convert GPS info) can be found:
http://android-coding.blogspot.com/2011/10/convert-gps-tag-of-exifinterface-to.html