title: Enter data in EditText and respond without pressing enter
body: <p>I have an editText with a listener.</p>
  
  <pre><code>edittext.setOnKeyListener(new OnKeyListener() {
      public boolean onKey(View v, int keyCode, KeyEvent event)
      {
          // If the event is a key-down event on the "enter" button
          if ((event.getAction() == KeyEvent.ACTION_DOWN) &amp;&amp;
              (keyCode == KeyEvent.KEYCODE_ENTER)) {
  
              // Perform action on key press
              return true;
          }
          return false;
      }
  });
  </code></pre>
  
  <p>Now I want to use the data entered in the textBox by the user in my program without the user pressing enter. (If I remove <code>(keyCode == KeyEvent.KEYCODE_ENTER)</code> then the program hangs for some reason).</p>
  
  <p>What should I do to identify that the user has entered some character in the textbox?</p>