[Solved] I am trying to build a simple calculator [closed]


You could keep track of what your first number is, and check if it is zero, then do nothing.

if(newValue == true)
    disp.setText("0");
else
{
    if (!firstNumber.equals("0")
        disp.setText(disp.getText().toString() + "0");
    newValue = false;
}

solved I am trying to build a simple calculator [closed]