Code example for ContentValues

Methods: putputNull

0
            return result;
        } 
 
        public static boolean markAsUnused(Context context, Uri uri) {
            ContentResolver cr = context.getContentResolver();
            ContentValues values = new ContentValues();
            values.put(ObaContract.Routes.USE_COUNT, 0);
            values.putNull(ObaContract.Routes.ACCESS_TIME);
            return cr.update(uri, values, null, null) > 0;
        } 
    } 
 
    public static class StopRouteFilters implements StopRouteFilterColumns { 
        // Cannot be instantiated 
        private StopRouteFilters() { 
        } 
 
        /** The URI path portion for this table */ 
        public static final String PATH = "stop_routes_filter";
        /** The content:// style URI for this table */ 
        public static final Uri CONTENT_URI = Uri.withAppendedPath(