I want to pass a 2d string array to a new activity. i saw many answers but i didnt get anyone. How can i do this.
use
Intent mIntent = new Intent(this, Example.class);
Bundle mBundle = new Bundle();
mBundle.putSerializable("list", selected_list);
mIntent.putExtras(mBundle);
To get the passed array use
String[][] passedString_list = (String[][]) bundle.getSerializable("list");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With