Java tutorial
//package com.java2s; /** * Copyright (c) 2012 Todoroo Inc * * See the file "LICENSE" for the full license governing this code. */ import android.content.Context; public class Main { private static boolean checkIfDatabaseExists(Context context, String legacyTable) { return context.getDatabasePath(legacyTable).exists(); } }