You should be able to also override the onKeyUp method (http://developer.android.com/reference/android/view/KeyEvent.Callback.html). In there, check to see if the key pressed was KeyEvent.KEYCODE_DEL, then also check to see if the text in the EditText is empty. If it is, throw your error.