Questions tagged [checkboxpreference]

CheckboxPreferences are boolean values stored in SharedPreferences

Click here To know more about this class.

95 questions
1
vote
2 answers

Where call my notification?

Where have i to "call" my notification? I want that appears when click the checkboxpreferenced . edit MainActivity.java import...//here all imports i need public class MainActivity extends Activity { CheckBoxPreference firtsDependent; ... public…
1
vote
2 answers

addPrefencesFromResource causes FC: Error inflating class CheckboxPreference

Every time I switch over to the preferences activity, I get a run time error that fc my app. I'm trying to learn Android programming, and i managed to resolve the problems i had but after a big amount of time searching for help i can't understand…
Adelaiglesia
  • 365
  • 1
  • 4
  • 16
0
votes
1 answer

Setting Default CheckBoxPreference and ListPreference

Will someone please help me? I have 8 CheckBoxPreference and one ListPreference & I can't seem to get them to set a Default Value. Inclosed is my preferences.xml, string.xml &…
Les
  • 41
  • 1
  • 1
  • 6
0
votes
2 answers

changing font style dynamically

This is my code(Edited): public class Main extends Activity { TextView txt; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button b=(Button)…
Tejaswini
  • 357
  • 4
  • 15
0
votes
2 answers

How to make sure at least one CheckBoxPreference is selected

I have a PreferenceActivity containing a number of CheckBoxPreference and I want to make sure that at least one of them is selected, any suggestion on how to do it? Thanks
Andrea Vacondio
  • 888
  • 9
  • 19
0
votes
1 answer

CheckBoxPreference isChecked causes a FC in a preferenceActivity

When I check if the checkbox is checked, I get a Force Close in the following code: public class preference extends PreferenceActivity implements OnSharedPreferenceChangeListener { public static final String nwd = "nwd"; private…
patrick
  • 1,282
  • 4
  • 21
  • 37
0
votes
1 answer

Android - How to set a value for CheckBoxPreference? Or?

I'm building an app where I need to show a settings screen when user can check what items from which categories will be displayed in main activity's listview. I'm parsing an XML for these categories, so the PreferenceScreen is done programatically…
shadyyx
  • 15,825
  • 6
  • 60
  • 95
0
votes
1 answer

How to evaluate Checkboxpreference?

I want to evaluate checkboxpreference, tried some method from here but non of it worked. I need to get the value in the OnSharedPreferenceChangeListener, but not in PreferenceActivity. It gives an error like: ava.lang.ClassCastException:…
TechDuck
  • 17
  • 6
0
votes
1 answer

How to check CheckBoxPreference is checked or not?

I have a Setting Page where I have added CheckBoxPreference I need to check whether the checkbox is checked or not? My code is :
Piyush Sahay
  • 51
  • 1
  • 10
0
votes
2 answers

Notification at specific time with time from sharedpreferences

I'm making an app where I want the user to specify a time in shared preferences then I'll use that time to launch a notification whether they're in the app or not, like a user-defined alarm notification. I've tried everything but I don't know how to…
0
votes
1 answer

Error inflating class on custom CheckBoxPreference

I created a custom CheckBoxPreference class to prevent the CheckBoxPreference from being clicked when the user clicks on anything else than the CheckBox itself. It worked perfectly yesterday before leaving but for a strange reason it doesn't work…
0
votes
2 answers

enable EditTextPreference visibility while user check or true the CheckBoxPreference in setting

it is possible set android:enabled="false" of EditTextPreference this is by default when user check the checkboxPreference if user click then EditTextPreference enable(true).. if uncheck then it will go enable(false) this is the problem..
0
votes
1 answer

custom column checkbox formatter using jquery

I have to add checkbox in one of the column (middle column) .. I supposed to make some row non editable checkbox .. All i need to know is how do i implement select all option for the header .. it's not coming up in the grid .. i have already set…
0
votes
1 answer

why checkboxpreference is a null object preference

I have problem where received null object reference at uncheckAll() method inside HomeActivity class. But the problem is I already reference both object ( checkboxPreferenceEvent and checkBoxPreferenceQuote ) inside MyPreferenceActivity class. Hope…
khoi
  • 940
  • 1
  • 14
  • 29
0
votes
0 answers

Select multiple items from recyclerView in a fragment and pass those selected items to other fragment within same activity

I have an activity, I have 2 fragments (FragmentA & FragmentB) within that activity. I can switch from FragmentA to FragmentB or vice-versa using the menu items. In the FragmentA I have fetched all the .pdf files within my device & displayed them…