close Database - Android Database

Android examples for Database:Database Connection

Description

close Database

Demo Code


//package com.book2s;

import android.database.sqlite.SQLiteDatabase;

public class Main {
    private static SQLiteDatabase db = null;

    public static void closeDatabase() {
        db.close();//from   w w  w  .  java2 s  .c om
    }
}

Related Tutorials