I tried it this way and it worked fine
static int i;
 public void onClick(View view) {
        i++;
        String s;
        if (i<4){
                updateTime();
        }else{
                s=String.format("iteration number %d around",i);
                btn.setText(s);
        }
    }

On Sep 16, 12:04 pm, rachana bedekar <rachanabede...@gmail.com> wrote:
> Hi,
> I need to perform mathematical  operation on the EditText's text. For that I
> coverted text from the EditText to  String,  but when I further try to
> covert Strint to Integer using parseInt - code doesn't show any bug, but the
> emulator stops responding.
>
> Can anyone give me a suggestion on this?
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to