I'm using this method to delete the last character typed in a TextView
:
texto = txtTexto.getText().toString();
int length = texto.length();
txtTexto.setText(texto.substring(0, length - 1));
But when I delete a character, I type a point "."
, I want it to execute something.