Java tutorial
//package com.java2s; import android.content.ContentValues; import android.database.sqlite.SQLiteDatabase; public class Main { public static long insert(SQLiteDatabase db, String name, String data) { ContentValues values = new ContentValues(); values.put("data", data); return db.insert(name, null, values); } }