Code example for Uri

Methods: getLastPathSegment

0
        public static Uri buildSeasonUri(String seasonId) {
            return CONTENT_URI.buildUpon().appendPath(seasonId).build();
        } 
 
        public static String getSeasonId(Uri uri) {
            return uri.getLastPathSegment();
        } 
 
        public static Uri buildSeasonsOfShowUri(String showId) {
            return CONTENT_URI.buildUpon().appendPath(PATH_OFSHOW).appendPath(showId).build();
        } 
    } 
 
    public static class EpisodeSearch implements EpisodeSearchColumns { 
        public static final Uri CONTENT_URI = BASE_CONTENT_URI.buildUpon()
                .appendPath(PATH_EPISODESEARCH).build();
 
        public static final Uri CONTENT_URI_SEARCH = BASE_CONTENT_URI.buildUpon()
                .appendPath(PATH_EPISODESEARCH).appendPath(PATH_SEARCH).build();
 
        public static final Uri CONTENT_URI_RENEWFTSTABLE = BASE_CONTENT_URI.buildUpon()