title: automatically separate mm:ss in editText?
body: <p>I would like the user to input a time in minutes and seconds. How do I automatically add in a ":" after the minutes have been input ? </p>
  
  <p>Using Eclipse with Java.</p>
  
  <p>So far I have this:</p>
  
  <pre><code>EditText editTextT;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);     
  
  editTextT = (EditText) findViewById(R.id.editTextT);
  
  editTextT.setOnKeyListener(new EditText.OnKeyListener() {
      public boolean onKey(View v, int keyCode, KeyEvent event) {
      if (editTextT.getText().length() == 2) {
          editTextT.setText(editTextT.getText() + ":");
          editTextT.setSelection(editTextT.getText().length());
      }
      return false;
  }
  });
  </code></pre>