void handleSendImage(Intent intent) { imageUri = (Uri) intent.getParcelableExtra(Intent.EXTRA_STREAM); if (imageUri != null) { // Update UI to reflect image being shared // check for EXIF data try { String picPath = PictureUtility.getRealPathFromURI(imageUri, SavePlace.this); System.out.printf("Path is:", picPath); int[] tempCoords = PictureUtility.getCoordsFromPhoto(picPath); if (!PictureUtility.isCoordinatesValid(tempCoords)) { // EXIF Coords were NOT found Log.i("PictureUtlity", "EXIF Coords were NOT found"); } else { // EXIF Coords were found Log.i("PictureUtlity", "EXIF Coords were found!"); } } catch (Exception e) { Log.i("IMAGE Getter", "Could not get image"); } } }