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 insertCompany(SQLiteDatabase db, String name, String email, String password, String phone,
            String address) {
        ContentValues companyValues = new ContentValues();
        companyValues.put("NAME", name);
        companyValues.put("EMAIL", email);
        companyValues.put("PASSWORD", password);
        companyValues.put("PHONE", phone);
        companyValues.put("ADDRESS", address);
        companyValues.put("ACTIVO", "ACTIVO");

        db.insert("COMPANY", null, companyValues);
    }
}