Questions tagged [checkboxpreference]

CheckboxPreferences are boolean values stored in SharedPreferences

Click here To know more about this class.

95 questions
-1
votes
2 answers

Android Preference: CheckBoxPreference - Difference between defaultValue and checked

In CheckBoxPreference, what is the difference between "android:defaultValue" and "android:checked"? Both seems to be doing the same thing
-1
votes
1 answer

Uncheck one box unchecks all boxes

I have an activity that extends PreferenceActivity. I have in settings.xml 3 checkboxpreferences. If I uncheck the first checkbox, the other 2 to uncheck. What is the code for that?
-1
votes
1 answer

Implementing Settings page in Android Application

I am a new developer, and i'm trying to implement a Settings page in Android, but with not much luck. I am using CheckBoxPreference, and i'm trying to make some SharedPreferences change when i check/uncheck a CheckBoxPreference. Here is my…
Vlad Iancu
  • 487
  • 1
  • 6
  • 15
-1
votes
3 answers

Class cast exception: cannot convert from Checkboxpreference to SwitchPreference

I am not able to identify the issue with my code and it seems no one face this kind of issue, so not able to track this in stack overflow. Exception message: Caused by: java.lang.ClassCastException: android.preference.CheckBoxPreference cannot be…
-2
votes
2 answers

Android, changing EditText based off of checkBoxPreference

I am trying to add a basic setting to my app. I would like to change the hint of an EditText in one of my activities if the checkBox is unchecked. preferences.xml
1 2 3 4 5 6
7