Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import android.database.sqlite.SQLiteDatabase;

public class Main {
    private static String DB_PATH = "";
    private static SQLiteDatabase database = null;
    private static String DB_NAME = "";

    private static boolean openDatabase() {
        String path = DB_PATH + DB_NAME;
        database = SQLiteDatabase.openDatabase(path, null, SQLiteDatabase.OPEN_READWRITE);
        return database != null;
    }
}