private static String getDataPathString(boolean isVideo) {
    return isVideo ? MediaStore.Video.Media.DATA : MediaStore.Images.Media.DATA;
  }
Get the path of a file from the Uri.

@param contentResolver the content resolver which will query for the source file
@param srcUri The source uri
@return The Path for the file or null if doesn't exists
fbcore/src/main/java/com/facebook/common/util/UriUtil.java