title: How to get corresponding file icon in Android?
body: <p>Every file type associated with its specific <strong>icon</strong>.</p>
  
  <p>Now if i am choosing <strong>somefilename.xxx</strong> then how i could be able to choose the icon associated with <strong>*.xxx</strong> rather than the default icon for unknown file.</p>
  
  <p><strong>Original Question</strong></p>
  
  <p>How can I get <code>.txt</code> or <code>.doc</code> or <code>.png</code> file icon? For example now I am choosing <code>filename.pdf</code>, how to get <code>filename.pdf</code> icon?
  For example</p>
  
  <pre><code>File f = new File("filename.pdf");
  </code></pre>
  
  <p>My File name is <code>filename.pdf</code>. How to get this file icon (Adobereader Icon).</p>