I want to pass the taskItems
ArrayList<HashMap<String,String>> taskItems = new ArrayList<HashMap<String, String>>();
through intent to the second activity
ArrayList<String> stringArr = new ArrayList<String>();
stringArr.add(KEY_TITLE);
stringArr.add(KEY_INFO);
stringArr.add(KEY_OBJECT);
stringArr.add(KEY_LOCATION);
ArrayList<Integer> intArr = new ArrayList<Integer>();
intArr.add(R.id.title);
intArr.add(R.id.info);
intArr.add(R.id.object);
intArr.add(R.id.location);
//Neue Oberfläche starten
Intent in = new Intent(ListViewActivity.this, ListMenuItemActivity.class);
in.putStringArrayListExtra("StringAdapter",stringArr);
in.putIntegerArrayListExtra("intAdapter",intArr);
------>in.putStringArrayListExtra("taskItems",taskItems);
startActivity(in);
I've marked the spot.
How can i pass the ArrayList
through Intent to my Activity?