is Image HTTP Content Type - Android Network

Android examples for Network:HTTP Content Type

Description

is Image HTTP Content Type

Demo Code


//package com.java2s;

public class Main {
    public static boolean isImageContentType(String contentType) {
        return contentType.equals("image/jpeg")
                || contentType.equals("image/bmp")
                || contentType.equals("image/gif")
                || contentType.equals("image/jpg")
                || contentType.equals("image/png");
    }/*w w  w  .j  a va 2 s .  co  m*/
}

Related Tutorials