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) { ContentValues drinkValues = new ContentValues(); drinkValues.put("NAME", name); drinkValues.put("DESCRIPTION", description); drinkValues.put("IMAGE_RESOURCE_ID", resourceID); db.insert("DRINK", null, drinkValues); } }