I have a problem to receive a text from edittext in one activity intent to a listview on another intent.
This is what I have done so far:
Activity B:
Button btn = (Button) findViewById(R.id.button2);
final EditText edit = (EditText) findViewById(R.id.editText1);
btn.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
Intent i = new Intent(addnote.this, MainActivity.class);
i.putExtra("text", edit.getText().toString());
startActivity(i);
Activity A: where the list view is I just don’t know how to receive this text when I clicked the button 2
thank you for that but I have problem receiving the data and placing it into my list view in my activity A i have done so far :