title: How to use an AndroidAnnotations SharedPref with a PreferenceActivity?
body: <p>I have a PreferenceActivity that I'd like to use with AndroidAnnotations @SharedPref, so the PreferenceActivity would use the data in the @SharedPref.</p>
  
  <p>Is there a good way to do this?  How do I tell the activity to to use @SharedPref I created elsewhere?  Is there a good way to do this without setting the value of each preference?</p>
  
  <p>Here is the activity code I'm currently using:</p>
  
  <pre><code>public class SettingsActivity extends PreferenceActivity {
  
      @SuppressWarnings("deprecation")
      @Override
      public void onCreate(Bundle savedInstanceState){
          super.onCreate(savedInstanceState);
          addPreferencesFromResource(R.xml.preferences);
      }  
  }
  </code></pre>