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)
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
Modifying a preference value in a PreferenceScreen by code
I have a PreferenceScreen following the docs here and here.
One of the options is a SwitchPreferenceCompat that does some risky work in my app, for example, to send sensitive information periodically....
Ton
Votes: 0
Answers: 2