android Howto "really" get the mime type of sd card files
<p>hi<br>
Dont say this is a duplicate question because i have read them all for two days.
And non of them really supply a useful answer.</p>

<p>I have a number of different files in a folder on the sdcard. 
Want to open right app depending on apk, txt, mp3, avi, jpg or show a chooser dialog. 
Therefor i need the mime type on the fly.</p>

<p>I have tried :
manageQuery return null cursor to often.<br>
MimeTypeMap cannot resolve the .3gp file and think its a .txt<br>
URLConnection.guessContentTypeFromName Dont work at all    </p>

<p>Was thinking i have to use the MediaFile.java and build my own..file.equals(".mp3")</p>

<p>addFileType("MP3", FILE_TYPE_MP3, "audio/mpeg");<br>
addFileType("M4A", FILE_TYPE_M4A, "audio/mp4");<br>
addFileType("WAV", FILE_TYPE_WAV, "audio/x-wav");<br>
addFileType("AMR", FILE_TYPE_AMR, "audio/amr");</p>

<p>Is that the way to do it?</p>
