is Mime Type Image - Android Graphics

Android examples for Graphics:Image File

Description

is Mime Type Image

Demo Code


public class Main {
  /**/*ww w.  j a  v a2 s  .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