Adding settings to android app
<p>This is definitely a noob question. I've followed the instructions here <a href="http://developer.android.com/guide/topics/ui/settings.html#Activity" rel="nofollow">http://developer.android.com/guide/topics/ui/settings.html#Activity</a> and when I click on settings, nothing happens.</p>

<p>Here's what I have in MainActivity.java:</p>

<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);   
    PreferenceManager.setDefaultValues(this, R.xml.preferences, false);
}
</code></pre>

<p>Then I have a new java file called PrefsActivity.java </p>

<pre><code>public class PrefsActivity extends PreferenceActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    addPreferencesFromResource(R.xml.preferences);
}    }
</code></pre>

<p>Then I have res/xml/preferences.xml</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;CheckBoxPreference
    android:key="face_up"
    android:title="@string/face_up"
    android:summary="@string/face_up_desc"
    android:defaultValue="false" /&gt;
&lt;/PreferenceScreen&gt;
</code></pre>

<p>I am trying to make it compatible with minsdk 7 if possible. What am I missing?</p>
