Simple Preferences & Proto DataStore Demo App

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • AndroidNews

    A simple RSS feed reader app (written in Kotlin and Jetpack Compose) that currently reads my blog (Android Kotlin Weekly)'s feed.

  • In this example, it is created in the main activity. Depending on your need, you can also create it in the repository class if it is only referenced there. You can see the example here.

  • Demo_DataStore

    Preferences & Proto DataStore App Example

  • GitHub Repository: Demo_DataStore

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • Demo_CoroutinesBasics

    Demo App - Kotlin Coroutines

  • This is what I have in my view model. To write to a preferences DataStore, you use the DataStore.edit() suspend API. Since it is a suspend function, you need to launch it under a coroutine.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts