title: Android EditText event listeners
body: <p>I am using <code>onTextChanged()</code> for <code>EditText</code> and <code>onKey()</code> event handler. I want to handle <code>onTextChanged()</code> when text is entered and <code>onKey()</code> when text is deleted i.e. i want to handle the <code>KEYCODE_DEL</code>. But my <code>onTextchanged()</code> event always fires. Anyone can post me some ideas.</p>
  
  <pre><code>ed.setOnKeyListener(this); 
  ed. addTextChangedListener(new TextWatcher() {
  @Override
  public void onTextChanged(CharSequence s, int start, int before, int count) {
     //
  });
  @Override
  public boolean onKey(View v, int keyCode, KeyEvent event) {    
  if (keyCode == KeyEvent.KEY CODE_ENTER) {
  // 
  });
  </code></pre>