title: Android : Couldn't create directory for SharedPreferences file
body: <p>I am trying to edit <code>SharedPreferences</code> of one app through another app, my code goes like this</p>
  
  <pre><code>try {
  Context plutoContext = getApplicationContext().createPackageContext("me.test",Context.MODE_WORLD_WRITEABLE);
  SharedPreferences plutoPreferences = PreferenceManager.getDefaultSharedPreferences(plutoContext);
  Editor plutoPrefEditor = plutoPreferences.edit();
  plutoPrefEditor.putString("country", "India");
  plutoPrefEditor.commit();
  }
  </code></pre>
  
  <p>I am getting an error </p>
  
  <p><code>E/SharedPreferencesImpl(  304): Couldn't create directory for SharedPreferences file /data/data/me.test/shared_prefs/me.test_preferences.xml</code></p>
  
  <p>where <code>me.test</code> is my another project
  in me.test proj I can edit and retrieve <code>SharedPreferences</code> with no pain </p>
  
  <p>I am testing it on Nexus S android 4.0.4 (Samsung), can any one help me</p>