Complex Content Store using DataStore
IIn the first two tutorials, we introduced Google’s Jetpack Datastore and basic uses of Datastore. In this course, we will cover how to store complex content using Proto Datastore. Proto Datastore is a Jetpack recommended solution for storing data using Protobufs that provides type safety.
Author: Hitesh Das
Video time: 60 minutes
Study time: 2 hours
Sample Project Included: Yes
Learning Path: Junior/Senior Developer
A few more words about this course
One of the downsides of both SharedPreferences and Preferences DataStore is that there is no way to define a schema or to ensure that keys are accessed with the correct type. To address this problem, Jetpack Datastore provides another type of storage solution which is called Proto DataStore. Proto Datastore, as the name suggests, uses Protocol buffers to define the schema. Using protos DataStore knows what types are stored and will just provide them, removing the need for using keys.
Drag to resize
By the end of the course you will have mastered:
- Introduction to Protocol Buffers
- Protobuf setup for Proto DataStor
- How to add Proto DataStore to your project.
- How to use Proto DataStore
- Store and Access complex data to and from Proto Datastore
- How to migrate from SharedPreferences to Proto DataStore
Meet the instructor
Drag to resize
Android Enthusiast, Principal Technical Architect, OLXGROUP
I am an Android enthusiast with a Computer Science and Engineering degree, I have more than to 11 years of work experience in Android app development. Currently leading the mobile android team at OLX Autos; Mentoring and managing to work together to create an environment of curiosity, encouragement, and technical growth. Work with the Product and Design teams to establish, architect and deliver solutions and making customers happy with technology. An active member of GDG, New Delhi and Android Developers Group, New Delhi, India. I love to cook, write blogs, sing, listen to music and meet new people and I strongly believe the maxim "When we share, we open doors to a new beginning".