mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Altered coord string to format required by API
This commit is contained in:
parent
875e1556f7
commit
8f724e461e
2 changed files with 3 additions and 5 deletions
|
|
@ -96,7 +96,7 @@ public class ImageProcessing {
|
||||||
decLongitude = 0 - convertToDegree(longitude);
|
decLongitude = 0 - convertToDegree(longitude);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (String.valueOf(decLatitude) + ", " + String.valueOf(decLongitude));
|
return (String.valueOf(decLatitude) + "|" + String.valueOf(decLongitude));
|
||||||
}
|
}
|
||||||
|
|
||||||
private double convertToDegree(String stringDMS){
|
private double convertToDegree(String stringDMS){
|
||||||
|
|
|
||||||
|
|
@ -44,8 +44,6 @@ public class ShareActivity
|
||||||
private String mediaUriString;
|
private String mediaUriString;
|
||||||
private String filePath = "";
|
private String filePath = "";
|
||||||
|
|
||||||
private static final String TAG = "Image";
|
|
||||||
|
|
||||||
private Uri mediaUri;
|
private Uri mediaUri;
|
||||||
|
|
||||||
private ExifInterface exif;
|
private ExifInterface exif;
|
||||||
|
|
@ -183,12 +181,12 @@ public class ShareActivity
|
||||||
}
|
}
|
||||||
|
|
||||||
mediaUriString = mediaUri.toString();
|
mediaUriString = mediaUri.toString();
|
||||||
Log.d(TAG, "Uri: " + mediaUriString);
|
Log.d("Image", "Uri: " + mediaUriString);
|
||||||
|
|
||||||
ImageProcessing imageObj = new ImageProcessing(this, mediaUri);
|
ImageProcessing imageObj = new ImageProcessing(this, mediaUri);
|
||||||
String filePath = imageObj.getFilePath();
|
String filePath = imageObj.getFilePath();
|
||||||
String coords = imageObj.getCoords(filePath);
|
String coords = imageObj.getCoords(filePath);
|
||||||
Log.d(TAG, "Coords of image: " + coords);
|
Log.d("Image", "Coords of image: " + coords);
|
||||||
|
|
||||||
|
|
||||||
ImageLoader.getInstance().displayImage(mediaUriString, backgroundImageView);
|
ImageLoader.getInstance().displayImage(mediaUriString, backgroundImageView);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue