0
I have an Edittext field and want to save the Text contained in it by pressing a button i tried to do it using the following code but the string remains null
public void Botao (View view) {
setContentView(R.layout.content_main_menu);
EditText valor = (EditText) findViewById(R.id.ValorEdit);
String ValorF = valor.getText().toString()
Apparently the program is only receiving the previous state of Edittext and not the typed text.
worked very thank you.
– Lucas Rosa