title: Android Create String from XML-filepath
body: <p>In my app the user can select a xml file via an Intent:</p>
  
  <p><strong>Selecting:</strong></p>
  
  <pre><code>Intent chooseFileXML = new Intent(Intent.ACTION_GET_CONTENT);
  chooseFileXML.setType("text/xml");
  Intent intentXML = Intent.createChooser(chooseFileXML, getString(R.string.importXMLDatei));
  startActivityForResult(intentXML, REQUEST_CODE_IMPORT_XML_FILE);
  </code></pre>
  
  <p><strong>Receiving:</strong></p>
  
  <pre><code>@Override
      protected void onActivityResult(int requestCode, int resultCode, Intent data){
          switch (requestCode){
              case REQUEST_CODE_IMPORT_XML_FILE:
                  if(resultCode == RESULT_OK){
                      Uri uri = data.getData();
                      String filePath = uri.getPath();
                      File fl = new File(filePath);
                      //Get xml-code from file and put it in a String
                      FileInputStream fin = null;
                      try {
                      fin = new FileInputStream(fl);
                      BufferedReader reader = new BufferedReader(new  InputStreamReader(fin));
                      StringBuilder sb = new StringBuilder();
                      String line;
                      while ((line = reader.readLine()) != null) {
                          sb.append(line).append("\n");
                      }
                      reader.close();
                      System.out.println(sb.toString());
  
                      fin.close();
                  } catch (Exception e) {
                      e.printStackTrace();
                  }
               }
               break;
          }
      }
  </code></pre>
  
  <p>I receive the <strong>correct filepath</strong>. But in this line:  <strong><em>fin = new FileInputStream(fl);</em></strong> I get this error:</p>
  
  <p>java.io.FileNotFoundException: /document/primary:Android/data/com.oli.myapp/Files/test.xml: open failed: ENOENT (No such file or directory) </p>