Android Google Maps Tutorial Ep 6: Data Persistence with Files - Kotlin Android Studio Development

Опубликовано: 04 Апрель 2026
на канале: Rahul Pandey
2,174
38

This video (episode 6 of 7) implements persistence by writing the contents of every map to a file which is read every time the app starts.

When the user makes a change to the map data (in our case, this only happens when the user adds a new map), we serialize the contents of the map and write it to a file. When the app is opened, we deserialize the contents of the file to recreate the list of maps.

➤ Playlist link for project:    • Android Google Maps Tutorial  
➤ Codepath guide to data persistence: https://guides.codepath.com/android/P...
➤ Some background on why we're not using Parcelable (it's not safe to persist): https://guides.codepath.com/android/u...

Overview:
In these videos, we build an app which displays a map showing markers of important places. You can also create a map which gets saved to a file and can be retrieved when the app is opened. This app helps you keep track of places that matter to you, whether they’re vacation ideas or places you’ve lived.