Issue
I am having 2 String arrays inside First Activity - A , now i need to pass both the arrays to the second_activity - B, how do i do it ?
I know about the Intent
kind of concept in Android and already passed just single variable value to another activity, but i haven't implement the concept of passing string arrays between activities, i have already surfed net for the same.
pls let me know about the possible solution.
Solution
Bundle b=new Bundle();
b.putStringArray(key, new String[]{value1, value2});
Intent i=new Intent(context, Class);
i.putExtras(b);
Hope this will help you.
In order to read:
Bundle b=this.getIntent().getExtras();
String[] array=b.getStringArray(key);
Answered By - viv
Answer Checked By - Gilberto Lyons (JavaFixing Admin)