Code example for Uri

Methods: withAppendedPath

0
        public static final String KEYWORD = "keyword";
    } 
 
    public static final class History implements CommonColumns, URLColumns, HistoryColumns, FaviconColumns, SyncColumns { 
        private History() {} 
        public static final Uri CONTENT_URI = Uri.withAppendedPath(AUTHORITY_URI, "history");
        public static final Uri CONTENT_OLD_URI = Uri.withAppendedPath(AUTHORITY_URI, "history/old");
        public static final String CONTENT_TYPE = "vnd.android.cursor.dir/browser-history";
        public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/browser-history";
    } 
 
    // Combined bookmarks and history 
    public static final class Combined implements CommonColumns, URLColumns, HistoryColumns, FaviconColumns  { 
        private Combined() {} 
        public static final Uri CONTENT_URI = Uri.withAppendedPath(AUTHORITY_URI, "combined");
 
        public static final int DISPLAY_NORMAL = 0;
        public static final int DISPLAY_READER = 1;
 
        public static final String BOOKMARK_ID = "bookmark_id";
        public static final String HISTORY_ID = "history_id";