Capturing plaintext information and storing in variable

Asked

Viewed 46 times

-2

I wonder how do I capture numbers from a plaintext and save to a variable.

1 answer

1

When you say PlainText did you mean a text field? Follow an example using the Edittext:

int i = Integer.valueOf(editText.getText().toString());

Browser other questions tagged

You are not signed in. Login or sign up in order to post.