is Mime Type Image - Android android.graphics

Android examples for android.graphics:Image Load Save

Description

is Mime Type Image

Demo Code


public class Main{


    /**//  w  ww. j  av  a  2s .  c o  m
     * @param mimeType The MIME type to check.
     * @return Whether the MIME is a image type.
     */
    public static boolean isMimeTypeImage(String mimeType) {
        return mimeType != null && mimeType.startsWith("image/");
    }

}

Related Tutorials