I have this code:
SharedPreferences settings = getPreferences(Context.MODE_PRIVATE);
SharedPreferences.Editor editor = settings.edit();
editor.putString("allphones",allphones);
editor.putString("specialkey", someKey);
editor.commit();
The allphones parameter gets stored, but when I try to get the "specialkey" in the next Activity like this:
String allphones = getPreferences(Context.MODE_PRIVATE).getString("specialkey","Blabla");
It ALWAYS returns me the Default String "Blabla".