PreferenceFragment will not work with 2.2 and 2.3 (only for API level 11 and above). But you can use the older version. That way, you could just go with the old PreferenceActivity settings - just because they should be avoided, but they usually still work.
Before writing CommonsWare, to offer the best user experience and still support version 2.2, you must implement the two PreferenceActivity classes and then decide at runtime which you need to call. This can be done by checking Build.VERSION.SDK_INT and compare it to "11".
See accepted answer here for implementation: PreferenceActivity Android 4.0 and earlier
source share