Code example for SQLiteException

Methods: printStackTrace

0
 
				checkDB = SQLiteDatabase.openDatabase(myPath, null,
						SQLiteDatabase.OPEN_READONLY);
 
			} catch (SQLiteException e) {
				e.printStackTrace();
			} 
			if (checkDB != null) {
				checkDB.close();
			} 
		} 
		return checkDB != null ? true : false;
	} 
 
	/** 
	 * Copies your database from your local assets-folder to the just created 
	 * empty database in the system folder, from where it can be accessed and 
	 * handled. This is done by transfering bytestream. 
	 * */ 
	private void copyDataBase() throws IOException { 
		// Open your local db as the input stream