public String getMimeType(String url) {
String type = null;
String extension = MimeTypeMap.getFileExtensionFromUrl(url);
if (extension != null) {
type = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension);
}
return type;
}
Featured post
Marshmallow Features Point by Point
Android Runtime (“ART”) Improved application performance and lower memory overhead for faster multi-tasking. Battery Doze...
Showing posts with label File_getMimeType. Show all posts
Showing posts with label File_getMimeType. Show all posts
Monday, 1 February 2016
getMimeType From String-Path
Subscribe to:
Posts (Atom)