Save location in image information

0

I need to take a photo and save it to the gallery and then upload it to the database. However, I wanted to know how to save the coordinates along with the image information. Remembering that I can already get my location, I just can not save it in the information in the image.

private File createImageFile() throws IOException {
    // Create an image file name
    String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date());
    String imageFileName = JPEG_FILE_PREFIX + timeStamp + "_";
    File albumF = getAlbumDir();
    File imageF = File.createTempFile(imageFileName, JPEG_FILE_SUFFIX, albumF);
    return imageF;
}

In the above code I'm setting the name, format, and folder.

    
asked by anonymous 30.08.2016 / 21:45

0 answers