My PreferencesActivity
's view is populated through XML and in that XML I included a PreferencesScreen
to navigate to the system's sync-preferences.
It works fine using the code below.
My problem/question is, that when I opened the Sync-Preferences, open the home-screen and then open my App again, the Sync-Settings are opened, because they lie on top of the stack. Is there a possibility to include the NEW_TASK-flag in the xml to tell the screen that it's a new task and not associated with my App's stack?
<PreferenceScreen
android:title="@string/preferences_activity_syncaccounts_title"
android:summary="@string/preferences_activity_syncaccounts_summary"
android:dialogTitle="@string/preferences_activity_syncaccounts_title">
<intent
android:action="android.settings.SYNC_SETTINGS"/>
</PreferenceScreen>