Code example for SQLiteDatabase

Methods: getVersion

0
	public void clearWp() { 
		this.mDB.delete(WP_TABLE, null, null);
	} 
 
	public int getDBVersion() { 
		return this.mDB.getVersion();
	} 
 
	public void close() { 
		if (this.mDB.isOpen()) {
			this.mDB.close();
		} 
	} 
 
	private static class DBOpenHelper extends SQLiteOpenHelper {
 
		private static final String CREATE_WP = "CREATE TABLE IF NOT EXISTS "
				+ WP_TABLE
				+ " (_id INTEGER, name TEXT, local_uri TEXT , perma_link TEXT , thumb TEXT, " 
				+ "PRIMARY KEY (_id));";