private static String mimeTypeForUrl(final String url) {
        return StringUtils.defaultString(UriUtils.getMimeType(Uri.parse(url)), "image/*");
    }
gets or creates local file and shareable Uri for given image. Returns null if creation fails
main/src/main/java/cgeo/geocaching/utils/ImageUtils.java