Hi I want to pass an Arraylist from one activity to another. I use putStringArrayListExtra(), but there shows an error : \"The m
You have to define ArrayList of type String. you can't pass Generic ArrayList in putStringArrayListExtra. Below is the correct code.
-----
ArrayList al = new ArrayList();
------
-------
list_bundle.putStringArrayListExtra("lists",al);
------
Now access this ArrayList in other activity like this.
ArrayList cl= new ArrayList();
cl =getIntent().getExtras().getStringArrayList("lists");