title: import file to android with a file exporer
body: <p>I have searched around but cant find a solution that fits my problem. I am very new to Android. </p>
  
  <p>Building an app that reads and edits csv files. </p>
  
  <p>I have the app so far reading the csv from the assets folder. This is the code I used for that. The Import.java code.</p>
  
  <pre><code>import java.io.BufferedReader;
  import java.io.IOException;
  import java.io.InputStream;
  import java.io.InputStreamReader;
  
  import android.content.Context;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.ArrayAdapter;
  import android.widget.TextView;
  
  
  public class CSVAdapter extends ArrayAdapter&lt;State&gt;{
  Context ctx;
  
  
  public CSVAdapter(Context context, int textViewResourceId) {
      super(context, textViewResourceId);
  
  
      this.ctx = context;
  
      //Load the data.
      loadArrayFromFile();    
  }
  
  
  
  
  @Override
  public View getView(final int pos, View convertView, final ViewGroup parent){
  
      TextView mView = (TextView)convertView;
  
      if(null == mView){ 
          mView = new TextView(parent.getContext());
          mView.setTextSize(28);
      }
  
  
      mView.setText(getItem(pos).getName());
  
  
  
      /*mView.setOnClickListener(new OnClickListener(){
          public void onClick(View v){
              Toast.makeText(parent.getContext(), getItem(pos).getCapital(), Toast.LENGTH_SHORT).show();
          }
      });*/
  
      return mView;
  }
  
  private void loadArrayFromFile(){
      try {
  
          InputStream is = ctx.getAssets().open("states.csv"); 
          BufferedReader reader = new BufferedReader(new InputStreamReader(is));
          String line;
  
  
          while ((line = reader.readLine()) != null) {
  
              String[] RowData = line.split(",");
  
  
              State cur = new State();
              cur.setName(RowData[0]);
              cur.setCapital(RowData[1]);
  
  
              this.add(cur);
          }
      } catch (IOException e) {
          e.printStackTrace();
      }
  }
  
  
  }
  </code></pre>
  
  <p>As you can see the inputStream is to the assets folder. I would like to be able to search for the csv file in external storage, like downloads or on the SD card but cant work out how to open a file browser to find it. </p>
  
  <p>Any one able to help?</p>
  
  <p>Thanks!</p>