title: How to update the same EditText using TextWatcher?
body: <p>In my Android application I need to implement a TextWatcher interface to implement <code>onTextChanged</code>. The problem I have is, I want to update the same EditText With some extra string. When I try to do this the program terminates.</p>
  
  <pre><code> final EditText ET = (EditText) findViewById(R.id.editText1);
   ET.addTextChangedListener(new TextWatcher() {
  
          @Override
          public void onTextChanged(CharSequence s, int start, int before, int count)
          {
              try
              {
                   ET.setText("***"+ s.toString());
                   ET.setSelection(s.length());
              }
              catch(Exception e)
              {
                  Log.v("State", e.getMessage());
              }
          }
  
          @Override
          public void beforeTextChanged(CharSequence s, int start, int count, int after)
          {
  
          }
  
          @Override
          public void afterTextChanged(Editable s)
          {               
          }
      });
  </code></pre>
  
  <p>My program terminates and even I try to catch the exception like in my code still it terminates.
  Does anyone have any idea why this happens and how I can achieve this? Thanks.</p>