How can I add file names into a listView in android studio
<pre><code>package com.example.snow.unitools;

import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.ArrayAdapter;
import android.widget.LinearLayout;
import android.widget.ListView;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

public class savedFile extends AppCompatActivity {
    ListView listView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_saved_file);

        listView = (ListView) findViewById(R.id.listView);

        try {

            String filePath = Environment.getExternalStorageDirectory().getAbsolutePath() + "/storage/emulated/0/Notes/";
            BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(filePath)));

            String line;
            ArrayList&lt;String&gt; lines = new ArrayList&lt;&gt;();
            while ((line = br.readLine()) != null) {
                lines.add(line);
            }

            ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;&gt;(this,android.R.layout.simple_list_item_1,lines);
            listView.setAdapter(adapter);
            br.close();



        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
</code></pre>

<p>The code so far isnt returning anything into the list view. There is files in the /Notes folder. 
 I have also tried..</p>

<pre><code>String filePath = Environment.getExternalStorageDirectory().getAbsolutePath() + "Notes/";
</code></pre>

<p>But thats not returning anything either. Is there anything I can add into this to get the file names. Thanks. </p>