Code example for SQLiteException

Methods: printStackTrace

0
		try{ 
		   long result =  this.insertStmt.executeInsert();
		   return result;
		} 
		catch(SQLiteException e){
			   e.printStackTrace();
		} 
		   return 0; 
		    
	} 
	 
	public void removePOI(POI p){
		if(!db.isOpen()){
			db = helper.getWritableDatabase();
		} 
		String query = "DELETE FROM "+helper.TABLE_NAME +
			" WHERE title='"+p.getTitle()+"' AND text='"+p.getText()+"'";
		db.execSQL(query);
		close(); 
	}