0
Good afternoon, I’ve been trying to pass an Edittext from one Activity to another, but I’m not getting it.
Activity A.
listaViewLivros.setOnItemClickListener(new AdapterView.OnItemClickListener()
{
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
view.setSelected(true);
Intent intent = new Intent(AddActivity.this, FinalActivity.class);
intent.putExtra("ChaveTitulo", edtTitulo.getText().toString());
startActivity(intent);
finish();
}
Activity B.
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_final);
saidaTitulo = (EditText) findViewById(R.id.saidaTitulo);
String novoTitulo = getIntent().getStringExtra("ChaveTitulo");
saidaTitulo.setText(novoTitulo);
}
I can not at any time pass the information inside the "outTitulo".