Pass Multidimensional Arraylist Of Latlng Through Intent
I am trying to pass an ArrayList> from one intent to another using putParcelableArrayListExtra () but for some reason it doesn't like my list. I defin
Solution 1:
First - consider using Guava tables to avoid a List of Lists pattern.
putParcelableArrayListExtra expects a List of objects that implements Parcelable. ArrayList does not. Arraylist implements Serializable, so the below will work.
ArrayList<ArrayList<LatLng>> listOfStrokes = new ArrayList<>();
Intent intent = newIntent(this, CreateFarm.class);
intent.putExtra("listOfStrokes", listOfStrokes);
Post a Comment for "Pass Multidimensional Arraylist Of Latlng Through Intent"