![Android Developers Backstage artwork](https://is5-ssl.mzstatic.com/image/thumb/Podcasts113/v4/27/04/86/2704860b-686b-99a8-d97e-c475983bc904/mza_2743413905807513331.png/100x100bb.jpg)
Episode 161: DataStories
Android Developers Backstage
English - April 21, 2021 16:21 - 35 minutes - 42.5 MB - ★★★★★ - 21 ratingsTechnology Education How To android programming development software mobile Homepage Download Apple Podcasts Google Podcasts Overcast Castro Pocket Casts RSS feed
This time, Tor, Chet, and Romain talked with Rohit Sathyanarayana and Florina Muntenescu about the DataStore library. DataStore is the replacement for SharedPreferences, being better for many reasons (it's asynchronous and avoids blocking the UI thread, it is type-safe). It not only has a similar/simple key-value pair API like SharedPreferences, but also has more powerful API as well. It's currently in alpha, but look for it to be the recommended approach soon as it approaches stable.
Florina, Romain, Chet, Daniel (ADB
audio producer, in person!), Tor, and Rohi
Article: Using DataStore in Kotlin Serialization
Docs: Docs
Codelab: Preferences Datastore codelab
Codelab: Proto Datastore codelab
Florina: @FMuntenescu
Rohit: @rohitsat123
Chet: @chethaase
Romain: @romainguy
Tor: @tornorbye