I'm trying read the location from images which is taken from the camera api which I included in my project.
But
exif.getAttribute(ExifInterface.TAG_GPS_LATITUDE)
gives null.
I know I need to enable save location(geo tagging) in settings. But I don't like to do that, as I need it to be done programmatically.
Is it possible to enable or disable geo tagging?
GPS information is not directly related to Android Camera API. The way geo tagging works is:
Assuming you have an app that invokes camera api to capture image, what you could do is:
Use it the way you wish to.