Can't read SharedPreferences fron another application
<p><strong>EDITED:</strong></p>

<p>I have one app that writes to SharedPreferences like that:</p>

<pre><code>    Context otherAppsContext = null;
    try {
        otherAppsContext = createPackageContext("AfroKeyboard.com.rob", Context.CONTEXT_IGNORE_SECURITY);
    } catch (NameNotFoundException e) {
    }

    SharedPreferences sharedPreferences = otherAppsContext.getSharedPreferences("PREFS_PRIVATE", Context.MODE_WORLD_READABLE);
    Editor prefsPrivateEditor = sharedPreferences.edit();
    prefsPrivateEditor.putString("layout02", jString);
    prefsPrivateEditor.putString("layout02name", "Russian Layout");
    prefsPrivateEditor.commit();
</code></pre>

<p>and another app that has to read from them</p>

<pre><code>        Context otherAppsContext = null;
        try {
            otherAppsContext = createPackageContext("AfroKeyboard.com.rob", Context.CONTEXT_IGNORE_SECURITY);
        } catch (NameNotFoundException e) {
        }

        SharedPreferences sharedPreferences = otherAppsContext.getSharedPreferences("PREFS_PRIVATE", Context.MODE_WORLD_READABLE);
        Log.e( "name2" , "name2: "+sharedPreferences.getString("layout02name", "") );
</code></pre>

<p>but it returns empty.</p>

<p>What do you think might be the problem?</p>

<p>Thanks!</p>
