Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.database.sqlite.SQLiteDatabase;
import android.content.ContentValues;

public class Main {
    private static void insertGymPlan(SQLiteDatabase db, String machineName, String machineSteps,
            int machineImageId) {
        ContentValues gymPlanValues = new ContentValues();
        gymPlanValues.put("MACHINE_NAME", machineName);
        gymPlanValues.put("EXCERCISE_STEPS", machineSteps);
        gymPlanValues.put("MACHINE_IMAGE_ID", machineImageId);
        db.insert("GYMPLAN", null, gymPlanValues);
    }
}