title: Android - How to list files inside a folder with a content provider
body: <p>I'm developing an application to read files through a content provider defined in another app (say app B).
  Now, I'm able to read a specific file from my app (app A) using:</p>
  
  <pre><code>[...]
  InputStream content = getContentResolver().openInputStream(content://.../path_of_the_folder/file_name.txt);
  BufferedReader reader1 = new BufferedReader(new InputStreamReader(content));
  String linetext;
         while ((linetext = reader1.readLine()) != null) { //printout
  [...]
  </code></pre>
  
  <p>but how can I list all files stored in the folder it self? I'm trying to use the "list" method defined in the class File, but how can I convert what I get from openInputStream to a File object?</p>
  
  <p>Thank you very much all </p>