title: Android MP3 file Filtering form sdcard
body: <p>I have developing the application to fetching data from sd card.</p>
  
  <p>I used this option for filtering but when I used logcat I found that I only get data of only file <code>sdcard/some_dir</code> </p>
  
  <p>But I have sound files into different folder so if possible give me <strong>universal code</strong> to fetch all the mp3 file form the sdcard.</p>
  
  <pre><code>class FileExtensionFilter implements FilenameFilter {
          public boolean accept(File dir, String name) {
              return (name.endsWith(".mp3") || name.endsWith(".MP3"));
          }
      }
  </code></pre>