private void onDeleteAll() { final Editable digits = mEditText.getText(); if (digits != null) digits.clear(); }
private void keyPressed(int keyCode) { KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); mEditText.onKeyDown(keyCode, event); }