Code example for ContentValues

Methods: put

0
	} 
	 
	private long insertScreenSettings(SQLiteDatabase db, BookmarkBase.ScreenSettings settings) 
	{		 
		ContentValues values = new ContentValues();		
		fillScreenSettingsContentValues(settings, values);
		return db.insertOrThrow("tbl_screen_settings", null, values);
	} 
 
	private boolean updateScreenSettings(SQLiteDatabase db, BookmarkBase bookmark) 
	{ 
		ContentValues values = new ContentValues();		
		fillScreenSettingsContentValues(bookmark.getScreenSettings(), values);
		String whereClause = BookmarkDB.ID + " IN " + "(SELECT screen_settings FROM " + getBookmarkTableName() + " WHERE " + BookmarkDB.ID + " =  " + bookmark.getId() + ");";
		return (db.update("tbl_screen_settings", values, whereClause, null) == 1);		
	} 
 
	private boolean updateScreenSettings3G(SQLiteDatabase db, BookmarkBase bookmark) 
	{ 
		ContentValues values = new ContentValues();		
		fillScreenSettingsContentValues(bookmark.getAdvancedSettings().getScreen3G(), values);