title: Android SharedPreferences not accessible in Main, other activities are fine?
body: <p>I have some data saved to my SharedPreferences but when i try to access it in the Main of my app the SharedPreferences file is empty.  If i call the same exact code from any of my other Activities i can access the data just fine.  any ideas on what the issue could be???</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  
      SharedPreferences prefs = this.getPreferences(Context.MODE_PRIVATE);
      int test = prefs.getInt("PREF_DIFFICULTY", 0);
  }
  </code></pre>
  
  <p>using the eclipse debugger i can see that the map backing the pref object is empty, but when i view that map from other activities it is full of data...very weird.  Here is my manifest just in case it matters.</p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="org.dawghouse.dd"
  android:versionCode="1" android:versionName="1.0"&gt;
  
  &lt;application android:label="@string/app_name" android:icon="@drawable/icon"&gt;
      &lt;activity android:name=".activity.Main" android:label="@string/app_name"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity android:name=".activity.BlockOutgoing" android:label="@string/outgoingTitle" /&gt;
      &lt;activity android:name=".activity.BlockIncoming" android:label="@string/incomingTitle" /&gt;
      &lt;activity android:name=".activity.TimeManager" android:label="@string/timeManagerTitle" /&gt;
      &lt;activity android:name=".activity.Preferences" android:label="@string/preferences" /&gt;
  &lt;/application&gt;
  
  &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
  &lt;uses-permission android:name="android.permission.READ_CONTACTS" /&gt;
  &lt;uses-permission android:name="android.permission.WRITE_CONTACTS" /&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>thanks in advance!!</p>