PreferenceActivity save as private values?
<p>I don't understand the concect of shared preference in android. Shared prefrerence is accessbile by the ather application on the smartphone?
If i use this class for save preference:</p>

<pre><code>    public class ImpostazioniActivity extends PreferenceActivity {
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        addPreferencesFromResource(R.xml.impostazioni);

    } }
</code></pre>

<p>Anda after in other activity i use:</p>

<pre><code>  SharedPreferences preference =  PreferenceManager.getDefaultSharedPreferences(getContext());
    if(preference.getString("username","").length() == 0 || preference.getString("password","").length() == 0)
        return  false;
    else
        return  true;
</code></pre>

<p>It's ok? I'm sure thet the information are accesible only in my application?
Thanks</p>
