Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

Android 4.3 Camera with exif geotags embedding

$
0
0
Hello. Recently i've been crying all around the internet that camera doesn't include gps info in exif tags.
Nobody helped me, so i built camera from source in android studio. Used min sdk=17, target sdk=18, eclipse compiler, xmpCore and mp4parser.

Added 2 lines in PhotoModule.java:
Code:

                        exif.setTag(directionTag);
                    }

                    if(mLocation != null)
                        exif.addGpsTags(mLocation.getLatitude(), mLocation.getLongitude());
                    mActivity.getMediaSaveService().addImage(

Also changed everywhere
Code:

import android.support.v8.renderscript<...>
so i don't know if it works in android 4.3 now. Works in cm10.1, if u remove standard gallery2 of course.


p.s. couldn't compile without
Code:

IsoFile out = (IsoFile)new DefaultMp4Builder().build(movie);
in VideoUtils.java

Attached Files
File Type: apk Gallery2.apk - [Click for QR Code] (6.34 MB)

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>