AppPreferenceBase added res/arrays/pref_layouts as well as a couple of functions to load that int-array as resource array so that the "base class" can easily perform a setDefaultPrefs() static function using descendant array of pref layouts; added AppPrefsDebug that introduces a static variable debug setting in case you want to use it for your app.