Add PreferencesActivity and PreferencesFragment