private static Uri generateUri(Context context, String filename) {
        String fileName = FILE_SUB_DIR_NAME + filename + FILE_EXTENSION;
        return new Uri.Builder()
                .scheme(CONTENT_SCHEME)
                .authority(context.getPackageName() + AUTHORITY_SUFFIX)
                .path(fileName)
                .build();
    }
Request a {@link Uri} used to access the bitmap through the file provider.
@param context The {@link Context} used to generate the uri, save the bitmap and grant the
               read permission.
@param bitmap The {@link Bitmap} to be saved and access through the file provider.
@param name The name of the bitmap.
@param version The version number of the bitmap. Note: This plus the name decides the
                filename of the bitmap. If it matches with existing file, bitmap will skip
                saving.
@return The uri to access the bitmap.
customtabs/src/android/support/customtabs/browseractions/BrowserServiceFileProvider.java