Caused by: java.lang.IllegalStateException: Map size should not be 0. Most likely, layout has not yet occured for the map view.
This should be clear enough. You cannot call
map.animateCamera(CameraUpdateFactory.newLatLngBounds(new LatLngBounds(southWest,northEast),10));
before the layout is complete. You need to use 3 param version instead.
See the documentation here: newLatLngBounds
Aternatively you may listen for the layout to complete instead of calling this code in onResume
.