Reading multiple screen clicks and displaying the same on edittext
<p>Am new to Android, and am building a simple calculator app. I want to read the multiple clicks made on the screen (i.e numbers) and display the same in edittext.</p>

<p>Kindly find the code below, in the button's onclicklistener event, am displaying  the numbers directly in edittext. With this piece of code, the displayed numbers in edittext are getting overwritten (i.e it is not getting appended). For example when I click '1', it appears correctly, and next when I click '2', it appears as '2', instead of "12". I know my logic is wrong here, but how can I make the characters to append in edittext?</p>

<p>Code:</p>

<pre><code>    button00.setOnClickListener(new Button.OnClickListener(){
        @Override
        public void onClick(View v) {
            // TODO Auto-generated method stub
            EditText01.setText("0");
        }
    });

    button01.setOnClickListener(new Button.OnClickListener(){
        @Override
        public void onClick(View v) {
            // TODO Auto-generated method stub
            EditText01.setText("1");
        }
    });

    button02.setOnClickListener(new Button.OnClickListener(){
        @Override
        public void onClick(View v) {
            // TODO Auto-generated method stub
            EditText01.setText("2");
        }
    });
</code></pre>

<p>Thanks in advance</p>
