public static String getMimeType(File file) {

        String extension = getExtension(file.getName());

        if (extension.length() > 0)
            return MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension.substring(1));

        return "application/octet-stream";
    }
@return The MIME type for the given file.
android/modules/module_common/src/main/java/github/tornaco/android/thanos/util/AndroidFileUtils.java