Try a code similar to this,
EditText priority =
(EditText)myAlertDialog.findViewById(R.id.priority_edit);
int x = Integer.parseInt(priority.getText().toString());
This works fine for me..
2009/9/16 rachana bedekar <[email protected]>
> 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!
>
> >
>
--
Shine bright,
(: Naveen Krishna Ch :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---