is MediaStore Audio Artist Uri - Android Media

Android examples for Media:Audio

Description

is MediaStore Audio Artist Uri

Demo Code


//package com.java2s;

import android.net.Uri;

import android.provider.MediaStore.Audio;

public class Main {
    public static boolean isAudioArtistUri(Uri uri) {
        if (uri == null) {
            return false;
        }//from   ww w  .ja va 2  s  .  c  om
        String uriStr = uri.toString();
        return uriStr.startsWith(Audio.Artists.EXTERNAL_CONTENT_URI
                .toString())
                || uriStr.startsWith(Audio.Artists.INTERNAL_CONTENT_URI
                        .toString());
    }
}

Related Tutorials