Java tutorial
//package com.java2s; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteException; public class Main { private static final String CHIRSTMAIS_IS_COMING = "ChirstmaisIsComing"; public static boolean exists() { SQLiteDatabase checkDB = null; try { checkDB = SQLiteDatabase.openDatabase(CHIRSTMAIS_IS_COMING, null, SQLiteDatabase.OPEN_READONLY); checkDB.close(); } catch (SQLiteException ex) { // database doesn't exist yet. } return checkDB != null ? true : false; } }