title: PreferenceActivity Android 4.0 and earlier
body: <p>Trying the different preference activities in the ApiDemos for Android 4.0, I see in the code that some methods are deprecated in PreferencesFromCode.java, for example.</p>
  
  <p>So my question is: if I use PreferenceFragment, will it work for all version or only 3.0 or 4.0 and up?</p>
  
  <p>If so, what should I use that works for 2.2 and 2.3 as well?</p>