title: How to Choose a file from files in SDCard?
body: <p>I have some text files on my android's SD Card, and i need to access one of them.
  I came across the below code <a href="https://stackoverflow.com/questions/2902689/how-can-i-read-a-text-file-from-the-sd-card-in-android">here</a>:</p>
  
  <pre><code>  //Find the directory for the SD Card using the API
  //*Don't* hardcode "/sdcard"
  File sdcard = Environment.getExternalStorageDirectory();
  
  //Get the text file
  File file = new File(sdcard,"file.txt");
  
  //Read text from file
  StringBuilder text = new StringBuilder();
  
  try {
      BufferedReader br = new BufferedReader(new FileReader(file));
      String line;
  
      while ((line = br.readLine()) != null) {
          text.append(line);
          text.append('\n');
      }
  }
  catch (IOException e) {
      //You'll need to add proper error handling here
  }
  
  //Find the view by its id
  TextView tv = (TextView)findViewById(R.id.text_view);
  
  //Set the text
  tv.setText(text);
  </code></pre>
  
  <p>But in this part of the code:</p>
  
  <pre><code>//Get the text file
  
  File file = new File(sdcard,"file.txt");
  </code></pre>
  
  <p>the name of the text file is specified but i need the user to choose the text file he wants (from those text files in SD Card). So how can i let the user brows the SD Card and choose
  the file he wants?</p>