Code example for Uri

Methods: getAuthority, getScheme

0
            mVideoView.start();
        } 
    } 
 
    private static boolean uriSupportsBookmarks(Uri uri) {
        String scheme = uri.getScheme();
        String authority = uri.getAuthority();
        return ("content".equalsIgnoreCase(scheme)
                && MediaStore.AUTHORITY.equalsIgnoreCase(authority));
    } 
 
    private Integer getBookmark() {
        if (!uriSupportsBookmarks(mUri)) {
            return null; 
        } 
 
        String[] projection = new String[] {
                Video.VideoColumns.DURATION,
                Video.VideoColumns.BOOKMARK};
 
        try {