How to pass a 2d String array
to new activity
???
and then in new activity, How can i retrieve
the array??
How to pass a 2d String array
to new activity
???
and then in new activity, How can i retrieve
the array??
You have to use:
String [][]str;
Intent summaryIntent = new Intent(this, Second.class);
Bundle b=new Bundle();
b.putSerializable("Array", str);
summaryIntent.putExtras(b);
startActivity(summaryIntent);
For Recieving the Array use:
Bundle b = getIntent().getExtras();
String[][] list_array = (String[][])b.getSerializable("Array");
Thanks