How to get mp3 files from sdcard and flash together?
<p>i have done this code:</p>

<pre><code>    List&lt;String&gt; songs = new ArrayList&lt;String&gt;();
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//      File directory = 
        File f = new File("/sdcard/"); 
        for (File file : f.listFiles()) 
        {
            if(file.getName().endsWith(".mp3"))
            {
                    String [] name = file.getName().split(".mp3");
                    String actualname="";
                    for(int i=0;i&lt;name.length;i++)
                        actualname +=name[i]+" ";
                    songs.add(actualname);
            }
        }
        setListAdapter(new ArrayAdapter(this,android.R.layout.simple_list_item_1, songs));
</code></pre>

<p>But this code works only with the sdcard and i want to get all the mp3 files from the sdcard and the flash cuz people now days saves music in it to so any one could point me to that direction?
Thanks</p>
