I am learning how to create UI elements. I have created a few EditText input fields. On the click of a Button I want to capture the content typed into that input field.
Get value from an EditText control in android. EditText getText property use to get value an EditText:
EditText
getText
EditText txtname = findViewById(R.id.name); String name = txtname.getText().toString();