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
MapFragment becomes slow after navigating back to it from a preferencesFragment
I added a Preferences Fragment to an application. I am using an ActionBar drop-down menu to navigate to the Preferences Fragment and also using the ActionBar's OnUpNavigation button to return to the p...

Edward Aarma
Votes: 0
Answers: 1
Preference Screen adding a entity header
How can I add such called "Entity Header" in a PreferenceScreen like listed in the docs here:
https://source.android.com/devices/tech/settings/settings-guidelines#entity_header
https://sourc...
chrisonline
Votes: 0
Answers: 1
androidx.preference.SwitchPreferenceCompat cannot be cast to androidx.preference.PreferenceGroup
So I'm trying to make an options menu in my android app but when I click on it in the emulator the app crashes and I get the following error:
androidx.preference.SwitchPreferenceCompat cannot be cast ...
luca.04
Votes: 0
Answers: 1