Java tutorial
//package com.java2s; import android.content.ContentValues; import android.database.sqlite.SQLiteDatabase; public class Main { private static final String TABLE_DRINK = "DRINK"; private static final String COLUMN_NAME = "NAME"; private static final String COLUMN_DESCRIPTION = "DESCRIPTION"; private static final String COLUMN_IMAGE_RESOURCE_ID = "IMAGE_RESOURCE_ID"; private static void insertDrink(SQLiteDatabase db, String name, String description, int imageResourceId) { ContentValues drinkValues = new ContentValues(); drinkValues.put(COLUMN_NAME, name); drinkValues.put(COLUMN_DESCRIPTION, description); drinkValues.put(COLUMN_IMAGE_RESOURCE_ID, imageResourceId); db.insert(TABLE_DRINK, null, drinkValues); } }