By pressing a button, a new Activi opens and you need to transfer a TWO-DIMENSIONAL array to a new Activiti, how to implement? If possible with an example (mandrel and receiving).

    1 answer 1

    To do this, you can use the Serializable interface (and the arrays are just implemented) as follows :

    We write down:

     bundle.putSerializable("list", selected_list); // Here bundle is Bundle object. 

    We get:

     String[][] passedString_list = (String[][]) bundle.getSerializable("list"); 

    Example:

     Intent mIntent = new Intent(this, Example.class); Bundle mBundle = new Bundle(); mBundle.putSerializable("list", selected_list); mIntent.putExtras(mBundle);