Java tutorial
//package com.java2s; import android.content.ContentValues; import android.database.sqlite.SQLiteDatabase; public class Main { private static void insertDrink(SQLiteDatabase db, String name, String description, int resourceId) { //this method was created to ContentValues drinkValues = new ContentValues(); //... insert several drink rows drinkValues.put("NAME", name); drinkValues.put("DESCRIPTION", description); drinkValues.put("image_id", resourceId); db.insert("DRINK", null, drinkValues); } }