double priceG = Double.parseDouble(priceGal.getText().toString());
double valG = Double.parseDouble(volGal.toString());
One of those is throwing the exception. You need to add some logging/printing to see what's in volGal
and priceGal
- it's not what you think.