is MediaStore Video Thumbnail Uri - Android Media

Android examples for Media:Video

Description

is MediaStore Video Thumbnail Uri

Demo Code


//package com.java2s;

import android.net.Uri;

import android.provider.MediaStore.Video;

public class Main {
    public static boolean isVideoThumbnailUri(Uri uri) {
        if (uri == null) {
            return false;
        }/*from ww  w  .  j av a2 s. c  o  m*/
        String uriStr = uri.toString();
        return uriStr.startsWith(Video.Thumbnails.EXTERNAL_CONTENT_URI
                .toString())
                || uriStr.startsWith(Video.Thumbnails.INTERNAL_CONTENT_URI
                        .toString());
    }
}

Related Tutorials