9

Android app settings: why bother using PreferenceFragment if it's not supported before API 11?

view full story
linux-howto

http://stackoverflow.com – PreferenceFragment is supported for implementing application preferences beginning with API 11 (http://developer.android.com/guide/topics/ui/settings.html#Fragment). Prior to API 11, PreferenceActivity was used. I have seen people struggle to implement PreferenceActivity for devices running older APIs while using PreferenceFragment for devices using newer APIs, in the same application. Can anybody help me understand why we would bother to implement PreferenceFragment. Why not just continue to use PreferenceActivity? That is what I am doing in my application as of now. (HowTos)