I have 2 activities. Each extends Activity. I tried all ways I found here, but none of them was working.
I need to send String array from one to other activity, but stay in first activity.
I try this:
Intent intent = new Intent(ActivityFrom.this, ActivityTo.class);
intent.putExtra("string-array", ARRAY);
ActivityFrom.this.startActivity(intent);
And to recive:
Intent intent = getIntent();
String[] array = intent.getExtras().getStringArray("string-array");
Any idea?
1 Answer