我有这个对象,我想在关闭应用程序后保存它,并在应用程序再次运行时检索它。关闭应用程序后保存对象,并在应用程序再次运行时检索它
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));
任何简单的例子呢?谢谢!
在关闭应用程序时创建文件和存储数据,并在应用程序再次运行时检索它。 – duggu
@Vis你为什么要存储对象? –