[Solved] My question is about intents in android studio. How can i send data between activities through intents


You have to write this code where you call new activity

    Intent intent = new Intent(this, yourActivity.class);
    intent.putExtra("textOfEditText1",editText1.getText().toString());
    intent.putExtra("textOfEditText2",editText2.getText().toString());
    startActivity(intent);

And This code in your second activity’s onCreate() method

    Bundle b = getIntent().getExtras();
    String s= b.get("textOfEditText1");
    String s2=b.get("textOfEditText2");
    textView.setText(s+s2);

3

solved My question is about intents in android studio. How can i send data between activities through intents