0
我该如何解决Android中的地理标记照片?我可以从位图对象或图像文件中完成此操作。有什么建议么?如何在Android中对照片进行地理标记?
我该如何解决Android中的地理标记照片?我可以从位图对象或图像文件中完成此操作。有什么建议么?如何在Android中对照片进行地理标记?
Apache有一个用于读写EXIF标签的公共项目:Sanselan。它包括类似于此的示例代码:
{
// Example of how to add/update GPS info to output set.
// New York City
double longitude = -74.0; // 74 degrees W (in Degrees East)
double latitude = 40 + 43/60.0; // 40 degrees N (in Degrees
// North)
outputSet.setGPSInDegrees(longitude, latitude);
}
// printTagValue(jpegMetadata, TiffConstants.TIFF_TAG_DATE_TIME);
os = new FileOutputStream(dst);
os = new BufferedOutputStream(os);
new ExifRewriter().updateExifMetadataLossless(jpegImageFile, os,
outputSet);
os.close();
os = null;
如果我需要从GPS设置位置? –
http://developer.android.com/training/basics/location/currentlocation.html – 323go