Error during click on settings button

view full story

http://stackoverflow.com – I'm new to Android Development and was trying to get a Settings menu to show up on my app. The XML file for Preferences is here: <?xml version="1.0" encoding="UTF-8"?> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" android:title="@string/settings"> <SwitchPreference android:title="Switch Preference" android:key="switchpref" android:switchTextOn="ON" android:switchTextOff="OFF" android:summary="Night Mode" android:defaultValue="false" android:disableDependentsState="false" /> </PreferenceScreen> The Main (HowTos)