Textchangelistener didn't work for integer
<p>I just created three edit texts which the second  edit text (edit4) and the third edit text (edit5) will automatically filled if I entry specific number to the first edit text (edit3).
here's my syntax</p>

<pre><code>    final EditText bil3=(EditText)findViewById(R.id.edit3);
    final EditText bil4=(EditText)findViewById(R.id.edit4);
    final EditText bil5=(EditText)findViewById(R.id.edit5);

    bil3.addTextChangedListener(new TextWatcher() {

        @Override
        public void onTextChanged
                    (CharSequence s, int start, int before, int count) {
            int pertama = Integer.parseint(edit3.gettext().tostring());
            int hasil   = pertama * 10 / 100;
            bil4.settext(hasil);

            int kedua   = Integer.parseint(edit4.gettext().tostring());
            int akhir   = pertama + hasil;
            bil5.settext(akhir);
        }

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


        }

        @Override
        public void afterTextChanged(Editable s) {
               // TODO Auto-generated method stub
        }
    });
</code></pre>

<p>but, I got an error in my program at the time I entry the specific number to the first edit text (edit3). could you help me to solve them, thank you.</p>

<p>Simply to say, I want to do a math operation inside textchangelistener event. How can I sum two edit text which contains integer type.</p>

<p>sorry my bad English, I really confused about this.</p>
