public static Uri getFileUri(android.app.Fragment fragment, File file) {
        return getFileUri(fragment.getActivity(), file);
    }
public static Uri getFileUri ( android . app . Fragment fragment , File file ) { return getFileUri ( fragment . getActivity ( ) , file ) ; }
Get compatible Android 7.0 and lower versions of Uri.

@param fragment {@link android.app.Fragment}.
@param file apk file.

@return uri.