public static String getMimeType(Context context, String url) {
        String type = context.getContentResolver().getType(Uri.parse(url));
        if (type == null) {
            type = "application/octet-stream";
        }
        return type;
    }
@return The MIME type for the give String Uri.
android/modules/module_common/src/main/java/github/tornaco/android/thanos/util/AndroidFileUtils.java