I implemented a CameraActivity for the Camera 2 API. But all photos I take have missing EXIF information, like geo-position.
It is not possible to get the photos GPS position by means of the ExifInterface. also when I open the photos on my desktop, no GPS properties were set. Photos taken by my Android device camera, has valid GPS position, etc.
How can I take photos including their EXIF values?
But all photos I take have missing EXIF information, like geo-position.
Adding geo-position EXIF headers is not the job of the camera API. If you want location data, you need to obtain it yourself (e.g., via LocationManager
and its requisite permissions), then add the EXIF headers that you want.