---
title: "Discussion on \"Use DataStore instead of Shared Preferences\" | Hashnode"
description: "Discussion on \"Use DataStore instead of Shared Preferences\". Introduction\nYou may come across a requirement in your app to store some configuration (not that big to use Room).\nFor example, the previous UI mode - (Dark/Light)\nYou might come across Shared Preferences for this requirement. Shared Preferences are ..."
url: "https://hashnode.com/posts/use-datastore-instead-of-shared-preferences/6420570f3fa6f95ced3dd1f4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Use DataStore instead of Shared Preferences](https://blog.dhina17.dev/use-datastore-instead-of-shared-preferences?utm_source=hashnode&utm_medium=feed)

Introduction You may come across a requirement in your app to store some configuration (not that big to use Room). For example, the previous UI mode - (Dark/Light) You might come across Shared Preferences for this requirement. Shared Preferences are ...

Mar 26, 2023 · 3 min read · blog.dhina17.dev  
Read the article

-   [#android](https://hashnode.com/tag/android)
-   [#android-app-development](https://hashnode.com/tag/android-app-development)
-   [#android-studio](https://hashnode.com/tag/android-studio)

## Written by

[Dhina17](https://hashnode.com/@dhina17)

@dhina17 · Tamil Nadu, India

  
[View profile](https://hashnode.com/@dhina17)

Android Developer | AOSP | Native Apps

I am a passionate and self-taught Android Developer who has good experience in AOSP, Native Android Apps (Java/Kotlin), Android for Embedded, Android in IoT, and Linux Kernel. I am more inclined to open-source, leading me to contribute to a few open-source projects. Sometimes I work in automation, scripting, and bots for myself.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
