blob: d24d5bb78da2f33a6fff62426489a4fec87c3564 [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001<HTML>
2<BODY>
3Provides classes that manage application preferences and implement the preferences UI.
4Using these ensures that all the preferences within each application are maintained
5in the same manner and the user experience is consistent with that of the system and
6other applications.
7<p>
8The preferences portion of an application
9should be ran as a separate {@link android.app.Activity} that extends
10the {@link android.preference.PreferenceActivity} class. In the PreferenceActivity, a
11{@link android.preference.PreferenceScreen} object should be the root element of the layout.
12The PreferenceScreen contains {@link android.preference.Preference} elements such as a
13{@link android.preference.CheckBoxPreference}, {@link android.preference.EditTextPreference},
14{@link android.preference.ListPreference}, {@link android.preference.PreferenceCategory},
15or {@link android.preference.RingtonePreference}. </p>
16<p>
17All settings made for a given {@link android.preference.Preference} will be automatically saved
18to the application's instance of {@link android.content.SharedPreferences}. Access to the
19SharedPreferences is simple with {@link android.preference.Preference#getSharedPreferences()}.</p>
20<p>
21Note that saved preferences are accessible only to the application that created them.</p>
22</BODY>
23</HTML>