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 {
    private static void insertDisease(SQLiteDatabase db, String diseaseName, String diseaseSymptoms,
            String diseaseOverview, String diseaseExpectations, String diseaseRiskFactors, String diseaseTreatment,
            String diseaseSelfCare, String diseaseMAdeWorseBy) {
        ContentValues diseaseValues = new ContentValues();
        diseaseValues.put("NAME", diseaseName);
        diseaseValues.put("SYMPTOMS", diseaseSymptoms);
        diseaseValues.put("OVERVIEW", diseaseOverview);
        diseaseValues.put("EXPECTATIONS", diseaseExpectations);
        diseaseValues.put("RISKFACTORS", diseaseRiskFactors);
        diseaseValues.put("TREATMENT", diseaseTreatment);
        diseaseValues.put("SELFCARE", diseaseSelfCare);
        diseaseValues.put("MADEWORSEBY", diseaseMAdeWorseBy);
        db.insert("DISEASE", null, diseaseValues);
    }
}