android delete key for keypad
<p>hi im trying to delete the input of a number on the keypad but not sure how to do this, i have search many website and there no info on how to delete numbers from the keypad thats been inputted by the user, heres some of my code  </p>

<pre><code>case R.id.keypad_8:
    answer.setText("8");
    break;

case R.id.keypad_9:
    answer.setText("9");
    break;


case R.id.keypad_h:
    if(ques==0){
        ques=1;
        if("0".equals(answer.getText().toString()))
            term.setText("Correct");
    question.setText("3+3=");
    }

    else if(ques==1){
        question.setText("5+4=");
    }


    break;
</code></pre>
