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 String dbName;

    public static void insertDrink(SQLiteDatabase db, String name) {
        ContentValues actValues = new ContentValues();
        actValues.put("NAME", name);
        db.insert(dbName, null, actValues);
    }
}