code: public static Uri getFileUri(android.app.Fragment fragment, File file) {
          return getFileUri(fragment.getActivity(), file);
      }
docs: Get compatible Android 7.0 and lower versions of Uri.
  
  @param fragment {@link android.app.Fragment}.
  @param file apk file.
  
  @return uri.