this is NPE at line Double.parseDouble(..)
.
Create this function
public double getDouble(String str) {
if (str != null) {
if (str.equalsIgnoreCase("")) {
return 0;
} else {
return Double.parseDouble(str);
}
} else {
return 0;
}
}
Then use this code
a = getDouble(inputA.getText().toString());
b = getDouble(inputB.getText().toString());
c = getDouble(inputC.getText().toString());