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 {
    private static void insertPeople(SQLiteDatabase db, String lastName, String name, String bio, int image_id) {
        ContentValues peopleValues = new ContentValues();
        peopleValues.put("LAST_NAME", lastName);
        peopleValues.put("NAME", name);
        peopleValues.put("BIO", bio);
        peopleValues.put("IMAGE_ID", image_id);
        db.insert("PEOPLE", null, peopleValues);
    }
}