title: can't getPreferences but it keeps changes (can see in manu layout)
body: <p>I've made a special preferences layout.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android" &gt;
  &lt;CheckBoxPreference
      android:key="pref_sound"
      android:title="@string/pref_sound"
      android:summary="@string/pref_sound_summ"
      android:defaultValue="true" /&gt;
  &lt;CheckBoxPreference
      android:key="pref_vibro"
      android:title="@string/pref_vibro"
      android:summary="@string/pref_vibro_summ"
      android:defaultValue="true" /&gt;
  &lt;CheckBoxPreference
      android:key="pref_screen"
      android:title="@string/pref_screen"
      android:summary="@string/pref_screen_summ"
      android:defaultValue="true" /&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p>And an activity for it.</p>
  
  <pre><code>package com.actionandresttimer;
  import android.os.Bundle;
  import android.preference.PreferenceActivity;
  
  public class Prefs extends PreferenceActivity {
  @SuppressWarnings("deprecation")
  @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          addPreferencesFromResource(R.xml.cboxpreferenses);
      }
  }
  </code></pre>
  
  <p>I can start that preferences activity via menu/settings from the main activity and it works. It stores all changes when I close and start my App again:</p>
  
  <pre><code>@Override
  public boolean onCreateOptionsMenu(Menu menu) {
      // Inflate the menu; this adds items to the action bar if it is present.
  
      //getMenuInflater().inflate(R.menu.main, menu);
      //return true;
  
      super.onCreateOptionsMenu(menu);
      MenuInflater inflater = getMenuInflater();
      //inflater.inflate(R.menu.menu, menu);
      inflater.inflate(R.menu.main, menu);
      return true;
  }
  </code></pre>
  
  <p>But when I'm trying to call <code>getPreferences</code>, it doesn't work</p>
  
  <pre><code>public void getPrefs() {
      // sPref = getPreferences(MODE_PRIVATE);
      //  sPref = PreferenceManager.getDefaultSharedPreferences(Prefs);
      sPref = this.getSharedPreferences("com.Prefs", Context.MODE_PRIVATE);
  
      cBoxSoundStatus = sPref.getBoolean("pref_sound", true);
      cBoxVibroStatus = sPref.getBoolean("pref_vibro", true);
      cBoxScreenStatus = sPref.getBoolean("cpref_screen", true);
  }
  </code></pre>
  
  <p>I can only see the default preferences settings. My boolean is set to <code>true</code> but in the preferences activity layout they are displayed as <code>false</code></p>
  
  <p>I tried the Android Developer website, but I'm new to Java programming and don't understand how to get any information from the official documentation website.</p>