Capturing information from plaintext and saving in variable [closed]

-2

I would like to know how to capture numbers from a plaintext and save it to a variable.

    
asked by anonymous 25.11.2017 / 19:33

1 answer

1

When you say PlainText did you mean a text field? Here's an example using EditText :

int i = Integer.valueOf(editText.getText().toString());
    
28.11.2017 / 17:35