How to determine if Android Camera Geo tagging is enabled (GPS information in EXIF ​​data)

I am trying to figure out if there is a way to detect the geotag or storage-location setting of the camera on an Android device. I do not mean the general location access setting, which I am very familiar with, but the more “hidden” setting when using the camera.

Most users do not even know that it exists, and it is disabled by default, I would like to inform users that this option is turned off so that they can enable it if they want, so the images will have all EXIF ​​data relative to their location .

I hope they haven’t answered this before, so if this happens, I regret it, and could you please connect me with the right thread.

+5
source share
3 answers

Each Android device usually comes with its own custom camera application made by the manufacturer of that device. Each of them has its own interface and, probably, its own path / place for storing this parameter, if it exists even for this device. Therefore, any answer to this question will be highly device dependent.

But even if you simply limit yourself to the AOSP camera application, which is the application used on Nexus devices, there is no API for this. The application will ask if you want to enable the GPS tag when you first start the application, after which you can find the option to enable / disable geotags in the settings.

, , - Android API. , - API- , , ( ).

+4

EXIF, , updateExif, , , make, flash, .., EXIF.

+2

Android 4.3, Nexus, :

  • .

  • ( ) . " " , , . " " , . , , .

  • ( ), " ".

  • The store location icon is the leftmost of the five. Clicking this icon toggles the setting (and rejects the menu). If the "store location" is turned off, this icon is displayed with a line through it, otherwise without.

0
source

All Articles