我有这个对象,我想在关闭应用程序后保存它,并在应用程序再次运行时检索它。
final LatLng CENTRAL_VIEW = new LatLng(24.205835,-20.753174);
CameraPosition cameraPosition = new CameraPosition.Builder()
.target(CENTRAL_VIEW) // Sets the center of the map to Central View
.zoom(6) // Sets the zoom
.build(); // Creates a CameraPosition from the builder
googlemap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));
有什么简单的例子吗?谢谢!