I have a little doubt on Android. Suppose I have an EditText, in which the user will enter a number by keyboard. How can I collect that value? Let's see, I'll do it as if it were a text string, which would be where I do this:
private EditText et1;
et1 = (EditText)findviewbyid(R.id.et1);
String texto = et1.getText().toString();
But do not do it if instead of text was a number, for example a number referring to age. How would that value be collected? Thanks and best regards!