Insert character between the cursor position in edit text
<p>My code is : </p>

<pre><code>EditText edt

    edt.addTextChangedListener(new TextWatcher() {

            @Override
            public void afterTextChanged(Editable arg0) {

            final String number = edt.getText().toString();

            int count = arg0.length();
            edt.setSelection(count);

        }

                    }

            @Override
            public void beforeTextChanged(CharSequence s, int start, int count,
                int after) {
            // TODO Auto-generated method stub

            }

            @Override
            public void onTextChanged(CharSequence s, int start, int before,
                int count) {

            final String number = edt.getText().toString();

                    }
</code></pre>

<p>I have a dialpad too.. When i click a particular number in the dial pad , i need to add that  number to the current cursor postion.... also.. when i press delete also, i need to delete the number from the      current cursor postion... Pls help   </p>

<p>Dialpad Image</p>

<p><img src="http://i.stack.imgur.com/0AQlE.jpg" alt="enter image description here"></p>
