title: File not found exception when trying to read from uri in android
body: <p>i want to read a fileInputStream from uri but it is returning a file not found exception </p>
  
  <p>this is my code so far : </p>
  
  <pre><code> Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
      intent.setType("*/*");
      intent.addCategory(Intent.CATEGORY_OPENABLE);
  
      try {
          startActivityForResult(Intent.createChooser(intent, "Select a File to Upload"), FILE_SELECT_CODE);
      } catch (android.content.ActivityNotFoundException ex) {
          Toast.makeText(getContext(), "Please install a File Manager.", Toast.LENGTH_SHORT).show();
      }
  
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
      switch (requestCode) {
          case FILE_SELECT_CODE:
              if (resultCode == RESULT_OK) {
                  // Get the Uri of the selected file
                  Uri fileUri = data.getData();
                 long size = Helper.GetFileSize(getActivity(),fileUri);
                  File F = new File(fileUri.getPath());
                  Log.d("File", "File Uri: " + fileUri.toString());
                  FileInputStream fis;
                  try {
                      fis = new FileInputStream(new File(F.getPath()));
                  }
                   catch (Exception ex) {
                       ex.printStackTrace();
                  }
              }
              break;
      }
      super.onActivityResult(requestCode, resultCode, data);
  }
  </code></pre>