is Mime Type Video - Android Media

Android examples for Media:Video

Description

is Mime Type Video

Demo Code


public class Main{
    /**//from  ww  w. j  av  a2  s .c om
     * @param mimeType The MIME type to check.
     * @return Whether the MIME is a video type.
     */
    public static boolean isMimeTypeVideo(String mimeType) {
        return mimeType != null && mimeType.startsWith("video/");
    }
}

Related Tutorials