public static Intent createExternalEditImageIntent(final Context ctx, final Uri imageUri) {
        final Intent intent = new Intent(Intent.ACTION_EDIT);
        //final Uri uri = ContentStorage.get().copy(image.uri, PersistableFolder.GPX.getFolder(), FileNameCreator.forName("test.jpg"), false);
        final Uri uri = UriUtils.toContentUri(ctx, imageUri);
        intent.setDataAndType(uri, "image/*");
        intent.setFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);
        intent.putExtra(MediaStore.EXTRA_OUTPUT, uri);
        return Intent.createChooser(intent, null);
    }
transforms an ImageView in a zoomable, pinchable ImageView. This method uses Loupe under the hood
@param activity activity where the view resides in
@param imageView imageView to make zoomable/pinchable
@param imageContainer container around the imageView. See loupe doc for details
@param onFlingUpDown optional: action to happen on fling down or fling up
@param onSingleTap optiona: action to happen on single tap. Note that this action is registered / exceuted for whole activity
main/src/main/java/cgeo/geocaching/utils/ImageUtils.java