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 {
    /**********************************************************************************************
     *
     *       Helper method to insert items into the individual muscle group tables of the database
     *
     *********************************************************************************************/
    private static void insertLift(SQLiteDatabase db, String name, String description, String searchLink,
            String image_id, String muscleGroup) {
        ContentValues lift = new ContentValues();
        lift.put("NAME", name);
        lift.put("DESCRIPTION", description);
        lift.put("SEARCH_LINK", searchLink);
        lift.put("IMAGE_RESOURCE_ID", image_id);
        db.insert(muscleGroup, null, lift);
    }
}