I am trying to pass an ArrayList<ArrayList<LatLng>>
from one intent to another using putParcelableArrayListExtra ()
but for some reason it doesn't like my list. I define the array list with ArrayList<ArrayList<LatLng>> listOfStrokes = new ArrayList<>();
and I am trying to pass it with
ArrayList<ArrayList<LatLng>> listOfStrokes = new ArrayList<>();
Intent intent = new Intent(this, CreateFarm.class);
intent.putParcelableArrayListExtra("listOfStrokes", listOfStrokes);
but I am getting a
Error:(383, 65) error: incompatible types: ArrayList> cannot be converted to ArrayList
error. Is there a way to pass this object?