title: How to determine if someone is typing on editText
body: <p>I am designing a chat application using android studio and i am using fire-base as cloud service provider and i got stock on how to make a listener like if the user is typing on the edit-text field The value of the user on fire-base will changed into true and when the user is not typing the value will become false.? I am looking for this solution for about a week, and didn't find any answer regarding on my researches.</p>
  
  <p>How to put TextWatcher?</p>
  
  <p>EDIT</p>
  
  <pre><code>       final Firebase firebase = new Firebase("https://my-first-sample-is.firebaseio.com/");
  
  
              editText = (EditText) findViewById(R.id.editText);
  
              listView = (ListView) findViewById(R.id.listView);
  
              listView.setAdapter(new MessageAdapter(this, Message.class, R.layout.fragment_message, firebase.child("chat")));
              editText.setAdapter(new RoomTypeAdapter(this, RoomType.class, R.layout.fragment_message1, firebase.child("Room-Typing")));
  
              button = (Button) findViewById(R.id.button);
  
  
  
              button.setOnClickListener(new View.OnClickListener() {
  
  
                  @Override
                  public void onClick(View view) {
    Message message = new Message();
  
                  message.setMessage(editText.getText().toString());
                  editText.setText("");
                  message.setAuthor("Name");
                  message.setNumMessages(numMessages);
  
  
                  firebase.child("chat").push().setValue(message);
  
  
              }
          });
          editText.setImeOptions(EditorInfo.IME_ACTION_DONE);
          editText.setOnEditorActionListener(new TextView.OnEditorActionListener() {
              @Override
              public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
                  if (actionId == EditorInfo.IME_ACTION_DONE) {
  
                      return true;
                  }
                  return false;
              }
          });
      }
  </code></pre>