Multiple calls to addPreferencesFromResource from PreferenceActivity
Just found this out, maybe it’s obvious, but something new for me. When you create a PreferenceActivity you call addPreferencesFromResource with the name of the resource file defining your preferences to display in the activity. You can make multiple calls to the addPreferencesFromResource method; this gives your Android application a way to show preferences that may be specific to that component of your app by breaking your preferences up into multiple resource files and aggregating them as needed.
I’d think if this functionality was used you’d want one screen that would aggregate all the preferences (maybe a Dashboard or Home screen), but individual activities could call other preferences activities that would further filter the preferences specific to that activity.
Just another option that you may find useful in your app….cheers!
