Java tutorial
//package com.java2s; import android.content.ContentValues; import android.database.sqlite.SQLiteDatabase; public class Main { private static void insert(SQLiteDatabase db, String tableName, String name, String description, int resourceId) { ContentValues values = new ContentValues(); values.put("NAME", name); values.put("DESCRIPTION", description); values.put("IMAGE_RESOURCE_ID", resourceId); db.insert(tableName, null, values); } }