title: getDefaultSharedPreferences() - what is the context for a multi package application?
body: <p>The <a href="http://developer.android.com/reference/android/preference/PreferenceManager.html#getDefaultSharedPreferences%28android.content.Context%29" rel="nofollow noreferrer">docs</a> state that :</p>
  
  <blockquote>
    <p>Gets a SharedPreferences instance that points to the default file that is used by the preference framework in the given context.</p>
  </blockquote>
  
  <p>My question is a context related question really - I am not quite clear if the context received by a BroadcastReceiver (in <code>myapp.receivers</code> package), the context I get in some activity or service (in <code>myapp.activities</code> and <code>myapp.services</code> respectively)  will delegate to the same SharedPreferences instance.</p>
  
  <p>Note that <a href="https://stackoverflow.com/a/6310080/281545">behind the scenes</a> <code>getDefaultSharedPreferences(context)</code> calls <code>getSharedPreferences(context.getPackageName(), MODE_PRIVATE)</code>. </p>
  
  <p><sub>Btw it is also <a href="https://stackoverflow.com/questions/10786172/android-getdefaultsharedpreferences">reported</a> that starting an app from shortcut as opposed to menu gives different Default Preferences</sub></p>