mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Minor fixes 2
This commit is contained in:
parent
204115de44
commit
131b9815af
1 changed files with 2 additions and 3 deletions
|
|
@ -1,6 +1,5 @@
|
|||
package fr.free.nrw.commons.upload;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.database.Cursor;
|
||||
import android.media.ExifInterface;
|
||||
|
|
@ -15,11 +14,9 @@ import java.io.IOException;
|
|||
/**
|
||||
* Created by misao on 16-Dec-15.
|
||||
*/
|
||||
//Needs to extend Activity in order to call getContentResolver(). Might not be the best way?
|
||||
public class ImageProcessing {
|
||||
|
||||
private Uri uri;
|
||||
private ExifInterface exif;
|
||||
private Context context;
|
||||
|
||||
public ImageProcessing(Context context, Uri uri){
|
||||
|
|
@ -52,11 +49,13 @@ public class ImageProcessing {
|
|||
return filePath;
|
||||
}
|
||||
|
||||
|
||||
public String getCoords(String filePath) {
|
||||
String latitude = "";
|
||||
String longitude = "";
|
||||
String latitude_ref = "";
|
||||
String longitude_ref = "";
|
||||
ExifInterface exif;
|
||||
|
||||
try {
|
||||
exif = new ExifInterface(filePath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue