SharedPreferences: when created?
<p>I try to access SharedPreferences inside Service. But when it's started first time and I try to read preferences, I get only default values, as if preferences don't exist. But after I open my preference Activity at first time, Service gets values. Is that normal? </p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"&gt;

    &lt;PreferenceCategory 
       android:key="CATEGORY_UPDATE"
       android:title="@string/autoUpdateCategory_title"&gt;
       &lt;CheckBoxPreference 
          android:key="PREF_AUTO_UPDATE" 
          android:title="@string/preferences_autoUpdate_title" 
          android:summary="@string/preferences_autoUpdate_summary" 
          android:defaultValue="true"&gt;
       &lt;/CheckBoxPreference&gt;
       &lt;ListPreference 
          android:key="PREF_UPDATE_FREQ" 
          android:title="@string/preferences_updateFreq_title" 
          android:summary="@string/preferences_updateFreq_summary" 
          android:dialogTitle="@string/preferences_updateFreq_title" 
          android:entryValues="@array/updateFreq_values" 
          android:entries="@array/updateFreq_options" 
          android:defaultValue="30"&gt;
        &lt;/ListPreference&gt;
    &lt;/PreferenceCategory&gt;
&lt;/PreferenceScreen&gt;


public class Preferences extends PreferenceActivity {

    public static final String PREF_AUTO_UPDATE = "PREF_AUTO_UPDATE";
    public static final String PREF_UPDATE_FREQ = "PREF_UPDATE_FREQ";

    protected void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);
        addPreferencesFromResource(R.xml.preferences);
    }
}


/* INSIDE SERVICE */
       Context context = getApplicationContext();
        SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);

        boolean autoUpdate = 
              prefs.getBoolean(Preferences.PREF_AUTO_UPDATE, false);
        int updateFreq =Integer.parseInt(prefs.getString(Preferences.PREF_UPDATE_FREQ, "0"));
</code></pre>

<p>During first Service launch I get 0 and false, despite default values. And after going to preference Activity everything is ok.</p>
