Code example for SQLException

Methods: toString

0
	    	db.execSQL("INSERT INTO Stats VALUES(3,'CallsIncoming',0);");
	    	db.execSQL("INSERT INTO Stats VALUES(4,'CallsOutgoing',0);");
	    	db.execSQL("INSERT INTO android_metadata VALUES('en_US');");
			Log.i("AndchieveDB", "Done!");
		} catch (SQLException e) {
			Log.e("AndchieveDB", "Problem creating DB: " + e.toString());
		} 
	} 
 
	@Override 
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		Log.i("AndchieveDB", "Upgrading DB");
		try { 
			// Not in use just yet :-) 
			Log.i("AndchieveDB", "Done!");
		} catch (SQLException e) {
			Log.e("AndchieveDB", "Problem upgrading DB: " + e.toString());
		} 
	} 
}