title: Share preferences not accesible via IntentService
body: <p>I am saving a value in Preference, but it always give me the default value. When the app is opened, I can get the actual value. But when I am getting the value from the <code>IntentService</code>, it always give me the default value.</p>
  
  <p>Code for saving the value:</p>
  
  <pre><code>prefs = context.getSharedPreferences(NAME, Context.MODE_PRIVATE);
  Editor editor = prefs.edit();
  editor.putString(key, value);
  editor.commit();
  </code></pre>
  
  <p>Code for reading the value:</p>
  
  <pre><code>prefs = context.getSharedPreferences(NAME, Context.MODE_PRIVATE);
  String value = prefs.getString(key, defaultValue);
  </code></pre>
  
  <p>But if i change file name then its working for some period but afterward again it start giving default value  </p>