I would like to be able launch a 2nd Preference screen from my PreferenceActivity. And in the 2nd Preference screen I\'d like to use a predefined layout from xml. So, I ha
alibi's solution - of defining an intent within a entry - worked for me, after much trial-and-error of the targetPackage and targetClass fields.
targetPackage needs to be the full path to the package name of my application (that is, the package= entry in the AndroidManifest.xml file). targetClass needs to be the full path to the Activity - INCLUDING the package name, even if the Activity is in the same package as the Application.
The AndroidManifest.xml file for the Application also (of course) needs an entry for the Activity. I didn't define an for this entry, presumably because the action is MAIN (this was true whether the Activity was in the same or a different package than the Application).
Example: the Application's package is com.thissocialworld. The Activity I'd like to kick off from the PreferencesScreen is in a package called com.coolcommon and the Activity class is com.thissocialworld.SpecialPreferences. The entry within the looks like this:
I may try changing action.MAIN to action.PREFERENCES if it seems to be necessary to get access to the PreferencesManager.
(PS my first post here, I couldn't figure out how to post this as a comment to the discussion started by alibi.)