Running slightly modified example of Google Maps throws BadParcelableException
in the Google Maps code. The LatLng
class is parcelable but it canno
I have found a simpler workaround to this. Providing your Fragment or Activity's class loader to the bundle before perfoming any operations as such:
savedInstanceState.setClassLoader(getClass().getClassLoader());
This does not seem to work when passing directly into the MapFragment or MapView's onCreateView or onCreate though, so you'll manually have to parcel out the map's CameraPosition and pass a null bundle into those functions.