title: Android using TextWatcher to replace words
body: <p>I have an <code>editText</code>, that you write in it something then when u click next .. the text u wrote gets written into another editText ..
  It's working perfectly ..
  But I want to use textWatcher to replace some letters..</p>
  
  <p>Example: How do I make the S to be $
  or the O to be @</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <pre><code>    final EditText First = (EditText)findViewById(R.id.etFirst);
      String strFirst = First.getText().toString();
      final TextView done = (TextView)findViewById(R.id.tvName);
      String strDone = done.getText().toString();
      Button Trans = (Button) findViewById(R.id.bTrans);
  
          Trans.setOnClickListener(new View.OnClickListener() {
  
              public void onClick(View v) {
                  //First EditText
                  if (First.getText().toString().equals("John")) {
                      done.setText("JOHN");
                  } else {
                  if (First.getText().toString().equals("Ahmed")) {
                      done.setText("AHMED");
                  } else  {
                  done.setText(First.getText());
                                  }
                              }
                          };
                      });
  
          First.addTextChangedListener(new TextWatcher() {
              public void onTextChanged(CharSequence s, int start, int before, int count) {
              }
  
              public void beforeTextChanged(CharSequence s, int start, int count, int after)    {
              }
  
              public void afterTextChanged(Editable s) {
              done.setText(First.getText().toString().replaceAll("S", "$"));
              }
              });
  </code></pre>
  
  <p>my code will type what you wrote in the EditText to a Large TextView below .. when I press the button <code>Trans</code> it sets the text which you wrote but I want to replace some letters example S to $ .. when I type S nothing happens .. just S it don't gets to be $ ..</p>
  
  <p>What am I doing wrong ?</p>