public static String getUrlExtension ( String url ) { String extension = MimeTypeMap . getFileExtensionFromUrl ( url ) ; return TextUtils . isEmpty ( extension ) ? "" : extension ; }
Get he extension by url .