public static Uri getUriForFile(Context context, String authority, File file) {
        final PathStrategy strategy = getPathStrategy(context, authority);
        return strategy.getUriForFile(file);
    }
Return a content URI for a given {@link File}. Specific temporary
permissions for the content URI can be set with
{@link Context#grantUriPermission(String, Uri, int)}, or added
to an {@link Intent} by calling {@link Intent#setData(Uri) setData()} and then
{@link Intent#setFlags(int) setFlags()}; in both cases, the applicable flags are
{@link Intent#FLAG_GRANT_READ_URI_PERMISSION} and
{@link Intent#FLAG_GRANT_WRITE_URI_PERMISSION}. A FileProvider can only return a
<code>content</code> {@link Uri} for file paths defined in their <code>&lt;paths&gt;</code>
meta-data element. See the Class Overview for more information.

@param context   A {@link Context} for the current component.
@param authority The authority of a {@link FileProvider} defined in a
                 {@code &lt;provider&gt;} element in your app's manifest.
@param file      A {@link File} pointing to the filename for which you want a
                 <code>content</code> {@link Uri}.
@return A content URI for the file.
@throws IllegalArgumentException When the given {@link File} is outside
                                 the paths supported by the provider.
replugin-sample/plugin/plugin-demo1/app/src/main/java/com/qihoo360/replugin/sample/demo1/provider/FileProvider.java