python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Android Preferences DataStore Flow Doesn't Emit Same Value
Just testing Preferences DataStore and found out that the provided Flow output won't emit same value, my setup as followed:
DataStore Util Class:
object DataStore {
private val Context.settings by...

Sam Chen
Votes: 0
Answers: 2
How to remove an item from repeated list in Android proto DataStore?
Here is the proto file with the definition for a list of strings.
message MyMessages {
repeated string message = 1;
}
Here is the function for removing a message from the repeated message list.
s...
s-hunter
Votes: 0
Answers: 1
context.createDatabase is not finding in preferences DataStore Android
I've just implemented Preferences by Android DataStore
but I can't find "context.createDataStore"
I added this dependency below
implementation "androidx.datastore:datastore-preference...

Mostafa Imani
Votes: 0
Answers: 2
Why is Datastore slower than Shared Preferences
I was checking the execution time of datastore and shared preference and I observed that datastore takes more time than shared preference.
This is my code
suspend fun saveUser(user: User, context: Con...
Rahul J
Votes: 0
Answers: 1