Java tutorial
//package com.java2s; import android.content.Context; import java.io.File; public class Main { private final static String DB_NAME = "mmovies.db"; /** * Verify if database file exits. * * @param context context * @return true if the file exits */ public static boolean existDatabase(Context context) { return getDatabaseFile(context).exists(); } public static File getDatabaseFile(Context context) { return context.getApplicationContext().getDatabasePath(DB_NAME); } }