question: public static boolean isDatabasePresent ( String packageName , String dbName ) { SQLiteDatabase checkDB = null ; try { checkDB = SQLiteDatabase . openDatabase ( "/data/data/" + packageName + "/databases/" + dbName , null , SQLiteDatabase . OPEN_READONLY ) ; checkDB . close ( ) ; } catch ( SQLiteException e ) { e . printStackTrace ( ) ; Log . e ( TAG , "The database does not exist." + e . getMessage ( ) ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; Log . e ( TAG , "Exception " + e . getMessage ( ) ) ; } boolean isDbPresent = checkDB != null ; return isDbPresent ; }
target:  Checks if the DB with the given name is present on the device.