I would like to know how to capture numbers from a plaintext
and save it to a variable.
I would like to know how to capture numbers from a plaintext
and save it to a variable.
When you say PlainText
did you mean a text field? Here's an example using EditText :
int i = Integer.valueOf(editText.getText().toString());