Minor fixes 2

This commit is contained in:
misaochan 2015-12-17 19:33:57 +13:00
parent 204115de44
commit 131b9815af

View file

@ -1,6 +1,5 @@
package fr.free.nrw.commons.upload; package fr.free.nrw.commons.upload;
import android.app.Activity;
import android.content.Context; import android.content.Context;
import android.database.Cursor; import android.database.Cursor;
import android.media.ExifInterface; import android.media.ExifInterface;
@ -15,11 +14,9 @@ import java.io.IOException;
/** /**
* Created by misao on 16-Dec-15. * 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 { public class ImageProcessing {
private Uri uri; private Uri uri;
private ExifInterface exif;
private Context context; private Context context;
public ImageProcessing(Context context, Uri uri){ public ImageProcessing(Context context, Uri uri){
@ -52,11 +49,13 @@ public class ImageProcessing {
return filePath; return filePath;
} }
public String getCoords(String filePath) { public String getCoords(String filePath) {
String latitude = ""; String latitude = "";
String longitude = ""; String longitude = "";
String latitude_ref = ""; String latitude_ref = "";
String longitude_ref = ""; String longitude_ref = "";
ExifInterface exif;
try { try {
exif = new ExifInterface(filePath); exif = new ExifInterface(filePath);