code: public static long insert(Connection connection, String table,
  			ContentValues values) {
  		try {
  			return insertOrThrow(connection, table, values);
  		} catch (Exception e) {
  			log.log(Level.WARNING, "Error inserting into table: " + table
  					+ ", Values: " + values, e);
  			return -1;
  		}
  	}
docs: Insert a new row
  
  @param connection
  connection
  @param table
  table name
  @param values
  content values
  @return row id or -1 on an exception