Back to project page FilePicker.
The source code is released under:
Apache License
If you think the Android project FilePicker listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.tonicartos.component.internal; import java.io.File; import java.net.URLConnection; public class ExtensionMapper { public static String getHeader(File file) { return URLConnection.getFileNameMap().getContentTypeFor(file.getName()); } }