Example on how to make Android PreferenceActivity compatible with old platform versions