9

Getting the Value of a CheckBoxPreference

view full story
linux-howto

http://stackoverflow.com – I want to get the value from a CheckBoxPreference, I have defined it in Convert/res/xml/settings.xml, here is how it looks: <?xml version="1.0" encoding="utf-8"?> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" > <CheckBoxPreference android:key="allow_internet" android:title="@string/internet_label" android:summaryOn="@string/internet_on" android:summaryOff="@string/internet_off" android:defaultValue="true" /> <CheckBoxPreference android:key="decimal_output" android:title="@stri (HowTos)