title: Dynamically create preference subscreens without PreferenceFragments from multiple xml files?
body: <p>Can I use a combination of xml defined preferences and create a small section of them dynamically?</p>
  
  <p>Example:
  I have the following settings.xml file defined:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" &gt;
      &lt;PreferenceScreen android:key="Menu1" android:title="Menu1" android:persistent="false" &gt;
          &lt;CheckBoxPreference  android:key="item1" android:title="@string/lesson1" android:summary="@string/summary" android:defaultValue="false"/&gt;
          &lt;CheckBoxPreference android:key="item2" android:title="@string/lesson2" android:summary="@string/summary" android:defaultValue="false"/&gt;
          &lt;CheckBoxPreference android:key="item3" android:title="@string/lesson3" android:summary="@string/summary"  android:defaultValue="false"/&gt;
      &lt;/PreferenceScreen&gt;
      &lt;PreferenceScreen android:key="menu2" android:title="Menu2" android:persistent="false"&gt;
          &lt;CheckBoxPreference  android:key="item1" android:title="@string/lesson1" android:summary="@string/summary" android:defaultValue="false"/&gt;
          &lt;CheckBoxPreference android:key="item2" android:title="@string/lesson2" android:summary="@string/summary" android:defaultValue="false"/&gt;
          &lt;CheckBoxPreference android:key="item3" android:title="@string/lesson3" android:summary="@string/summary"  android:defaultValue="false"/&gt;
      &lt;/PreferenceScreen&gt;
      &lt;PreferenceScreen android:key="menu3" android:title="Menu3" android:persistent="false"&gt;
          &lt;CheckBoxPreference  android:key="item1" android:title="@string/lesson1" android:summary="@string/summary" android:defaultValue="false"/&gt;
          &lt;CheckBoxPreference android:key="item2" android:title="@string/lesson2" android:summary="@string/summary" android:defaultValue="false"/&gt;
          &lt;CheckBoxPreference android:key="item3" android:title="@string/lesson3" android:summary="@string/summary"  android:defaultValue="false"/&gt;
      &lt;/PreferenceScreen&gt;
  &lt;/PreferenceScreen&gt;
  </code></pre>
  
  <p>Can I use the in conjunction with the onCreate() method here:</p>
  
  <pre><code>@Override 
  protected void onCreate(Bundle savedInstanceState) { 
      super.onCreate(savedInstanceState); 
      addPreferencesFromResource(R.xml.settings);
  
      PreferenceScreen prefs = getPreferenceManager().createPreferenceScreen(this);
      prefs.setKey("menu4");
      prefs.setTitle("Menu4");
  
      //How to add prefs as the next item in preferences menu??
  } 
  </code></pre>
  
  <p>I have a API level 8 requirement so I can't use PreferenceFragment.</p>