is Media Uri - Android android.net

Android examples for android.net:Uri

Description

is Media Uri

Demo Code

import android.net.Uri;


public class Main{

    /**/* w w  w . j  a v a 2s  .c o m*/
     * @return True if Uri is a MediaStore Uri.
     * @author paulburke
     */
    public static boolean isMediaUri(Uri uri) {
        return "media".equalsIgnoreCase(uri.getAuthority());
    }

}

Related Tutorials