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 void insertEstablishment(SQLiteDatabase db, String name, String email, String password,
            String phone, String address, String waste) {
        ContentValues establishmentValues = new ContentValues();
        establishmentValues.put("NAME", name);
        establishmentValues.put("EMAIL", email);
        establishmentValues.put("PASSWORD", password);
        establishmentValues.put("PHONE", phone);
        establishmentValues.put("ADDRESS", address);
        establishmentValues.put("WASTE", waste);
        establishmentValues.put("ACTIVO", "ACTIVO");
        db.insert("ESTABLISHMENT", null, establishmentValues);
    }
}