Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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);
    }
}