I bet it's one if the given arguments that fail. Please try to format your code like this:
double dUnitSize = Double.parseDouble(unitSize.getText().toString());
double dValue = calculate(
firstUnit.getSelectedItem().toString(),
secondUnit.getSelectedItem().toString(),
dUnitSize
);
answer.setText(dValue);
you'll soon find out which line the problem is.