protected void insert(long id, TvShow show) { ContentValues values = new ContentValues(); values.putNull(SQLiteProvider.TVSHOW_TBL_COLUMN_ID); values.put(SQLiteProvider.TVSHOW_TBL_COLUMN_CHANNEL_ID, id); values.put(SQLiteProvider.TVSHOW_TBL_COLUMN_TITLE, show.getTitle()); values.put(SQLiteProvider.TVSHOW_TBL_COLUMN_DESCRIPTION, show.getDescription()); values.put(SQLiteProvider.TVSHOW_TBL_COLUMN_CATEGORY, show.getCategory()); values.put(SQLiteProvider.TVSHOW_TBL_COLUMN_LENGTH, show.getLength()); values.put(SQLiteProvider.TVSHOW_TBL_COLUMN_START, show.getStart().getTime()); values.put(SQLiteProvider.TVSHOW_TBL_COLUMN_END, show.getEnd().getTime()); db.insert(SQLiteProvider.TVSHOW_TBL_NAME, null, values); }