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 insertDataTopic(SQLiteDatabase db, String section, String name, String url,
            int resourceId) {
        ContentValues values = new ContentValues();
        values.put("SECTION", section);
        values.put("NAME", name);
        values.put("URL", url);
        values.put("IMAGE_RESOURCE_ID", resourceId);
        db.insert("TOPIC", null, values);
    }
}