My app has a feature that browse files on your phone and SD card and open them using other apps. I want a solution where I don\'t have to specify the MimeType and can work w
There is a problem with NoBugs's answer. This is directly out of the eclipse function information window:
String android.webkit.MimeTypeMap.getMimeTypeFromExtension(String extension)
public String getMimeTypeFromExtension (String extension)
Since: API Level 1
Return the MIME type for the given extension.
Parameters
extension A file extension without the leading '.'
Returns The MIME type for the given extension or null iff there is none.