2

I am fairly new to android and I am creating an app that uses the camera intent to take a photo and stores it into a database along with some other info. my trouble is that I need to get the latitude and longitude from that photo and store it into the database as well. I have searched very thoroughly and can not seem to find out how to extract the location information from a photo. any help will be greatly appreciated.

thanks in advance

1

1 Answer 1

10

Create an ExifInterface from the filename and then you can call getLatLong() to get the coordinates.

Sign up to request clarification or add additional context in comments.

1 Comment

@user652393 Glad to help! To indicate this answer solved your problem, there's a little checkmark thing on the left you can click to accept this as the right answer, which will give us both a few reputation points.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.