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:
    public class ImpostazioniActivity extends PreferenceActivity {
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        addPreferencesFromResource(R.xml.impostazioni);
    } }
Anda after in other activity i use:
  SharedPreferences preference =  PreferenceManager.getDefaultSharedPreferences(getContext());
    if(preference.getString("username","").length() == 0 || preference.getString("password","").length() == 0)
        return  false;
    else
        return  true;
It's ok? I'm sure thet the information are accesible only in my application? Thanks
 
     
    