Hello Mark,
Your explanation was awesome! Now I understand how it's supposed to
work.
I have another question though.
If I have this code, how do I know how/where it saves it in the
SharedPreferences?

PreferenceScreen root = getPreferenceManager().createPreferenceScreen
(this);
ListPreference interval = new ListPreference(this);
interval.setEntries(R.array.intervalTimes);
interval.setEntryValues(R.array.intervalTimes);
interval.setDialogTitle("Interval Time");
interval.setKey("Interval Time");
interval.setTitle("Interval Time");
interval.setValueIndex(0);
root.addPreference(interval);


Now, I want to see what it saved.
SharedPreferences settings = getSharedPreferences(nameOfPreference,
0);

What should I insert there in the "nameOfPreference" in order for it
to find the value that the user saved?

Thanks,
Noam.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to