display all files from specific folder from sdcard Android
<p>how can i display all the files (.pdf, .doc, .ppt, .mp4, etc...) inside a folder in sdcard? i want to display their filenames.</p>

<p>here's what i've got:</p>

<pre><code>File files = new File(Environment.getExternalStorageDirectory() + "/Downloads/Files/");
File[] list = files.listFiles();

    int lists = files.listFiles().length;
    String qwe = list.toString();

    Log.d(LOG_TAG, "list: " + lists);
    Log.d(LOG_TAG, "names: " + qwe + "\n"); //i want to show their filenames

    for(int i=0; i &lt; questionfiles.listFiles().length; i++){
        if(list[i].isHidden()){
            Log.d(LOG_TAG, "hidden path files.."+list[i].getAbsolutePath());
        }
    }
</code></pre>
