I have to buttons that writes A and B to an edittext. If there is something in the edittext how can I delete the last letters with the \"Del\" button? My layout:
<
String text = editText.getText().toString(); if(text.length() > 0){ text = str.substring(0, str.length()-1); editText.setText(text); }