private boolean checkDatabase(){
  SQLiteDatabase checkDB=null;
  try {
    String path=DB_PATH + DB_NAME;
    checkDB=SQLiteDatabase.openDatabase(path,null,SQLiteDatabase.OPEN_READONLY);
  }
 catch (  SQLException e) {
    e.printStackTrace();
    Log.e("DB_ERROR","checkDatabase(): Could not open DB");
  }
  if (checkDB != null)   checkDB.close();
  return checkDB != null ? true : false;
}

private boolean checkDatabase ( ) { SQLiteDatabase checkDB = null ; try { String path = DB_PATH + DB_NAME ; checkDB = SQLiteDatabase . openDatabase ( path , null , SQLiteDatabase . OPEN_READONLY ) ; } catch ( SQLException e ) { e . printStackTrace ( ) ; Log . e ( "DB_ERROR" , "checkDatabase(): Could not open DB" ) ; } if ( checkDB != null ) checkDB . close ( ) ; return checkDB != null ? true : false ; }
check copy database process after copying to database in device
