How to create a thumbnail playlist for a music player in android?
<p>I developed a simple media player app in android. It has a list view to load all songs in SD card, seek bar and play button. I need to create a album art gallery for my app (Like in google play music app). I used this code to get all songs from SD card,</p>

<pre><code>public ArrayList&lt;String&gt; GetFiles(String DirectoryPath) {
        ArrayList&lt;String&gt; MyFiles = new ArrayList&lt;String&gt;();
        File f = new File(DirectoryPath);
        f.mkdirs();
        File[] files = f.listFiles();
        if (files.length == 0) {
            return null;
        }else {
            for (int i=0; i&lt;files.length; i++)
                MyFiles.add(files[i].getName());
        }

        return MyFiles;
    }
</code></pre>

<ol>
<li><p>How to improve this code to return song name and album-art?</p></li>
<li><p>How to create a thumbnail view for each song ?</p>

<pre><code> _________
|         |
| image   |
|         |
|_________|
|  title  |
|_________|
</code></pre></li>
</ol>