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 insertDietPlan(SQLiteDatabase db, String dietName, String dietRecipeSteps,
            int dietImageId) {
        ContentValues dietPlanValues = new ContentValues();
        dietPlanValues.put("DIET_NAME", dietName);
        dietPlanValues.put("RECIPE_STEPS", dietRecipeSteps);
        dietPlanValues.put("DIET_IMAGE_ID", dietImageId);
        db.insert("DIETPLAN", null, dietPlanValues);
    }
}