Note that there are some explanatory texts on larger screens.

plurals
  1. PODialog Preferences from my PreferenceActivity aren't being saved
    primarykey
    data
    text
    <p>I have a bunch of EditTextPreferences and a TimePickerPrefernce(that I created) along with one CheckBoxPreference and none of the EditTextPreference or TimePickerPreference get saved, but the CheckBox does. I thought it might have been because of the bare minimum I have in my PreferenceActivity subclass, but seeing as how the checkbox gets saved I'm not sure if that is.</p> <p>I've searched all over and everything seems to say that preferences should be automatically saved, and I can't find out any reason why they wouldn't be.</p> <p>Here is my preference xml file: </p> <p> </p> <pre><code>&lt;PreferenceCategory android:title="@string/settings_general_header" &gt; &lt;EditTextPreference android:defaultValue="15" android:summary="@string/settings_time_to_sleep" android:title="@string/settings_time_to_sleep_title" android:numeric="integer" /&gt; &lt;EditTextPreference android:defaultValue="90" android:summary="@string/settings_sleep_cycle_time_summary" android:title="@string/settings_sleep_cycle_minutes" android:numeric="integer" /&gt; &lt;EditTextPreference android:defaultValue="5" android:summary="@string/how_many_results" android:title="@string/settings_results_to_show_title" android:numeric="integer" /&gt; &lt;/PreferenceCategory&gt; &lt;PreferenceCategory android:title="@string/wakeupat_settings_header" &gt; &lt;CheckBoxPreference android:key="@string/save_wakeupat_time" android:title="@string/save_wakeupat_time" android:defaultValue="false"/&gt; &lt;TimePickerPreference android:dependency="@string/save_wakeupat_time" android:title="@string/wakeupat_preferred_time" /&gt; &lt;/PreferenceCategory&gt; </code></pre> <p></p> <p>and here is my PreferenceActivity subclass:</p> <pre><code>package com.krej.timeforbed; import java.util.List; import android.os.Bundle; import android.preference.PreferenceActivity; import android.preference.PreferenceFragment; import android.preference.PreferenceManager; import android.util.Log; import android.widget.Button; public class Settings extends PreferenceActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.settings); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload