DataStore
Last updated
What is DataStore?
DataStore is Jetpack's modern replacement for Shared Preferences. It provides two implementations: Preferences DataStore for key-value storage and Proto DataStore for typed, schema-based storage using Protocol Buffers. DataStore uses Kotlin coroutines and Flow, making it asynchronous and safer to use than Shared Preferences.
Free resources to learn DataStore
- Official docsDocumentation
- VideoIntroduction to DataStore
More in stage 7: Storage
DataStore: common questions
Can I learn DataStore in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain DataStore in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this DataStore tutorial for beginners?
It is lesson 60 of 113 in the free Android roadmap, in stage 7, Storage. If you are new to Android, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.