My SettingsActivity
has sub-preference screens. I want to directly open one of the nested PreferenceScreen
in SettingsActivity
from another Activity
on button click.
Basically, I want the user to be redirected from an Activity
to the sub-section of theSettingsActivity
screen. Is there a way to do it?
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory
android:title="@string/pref_header_general">
</PreferenceCategory>
<ListPreference
..
/>
<PreferenceScreen <!--Show this sub preference screen in Setttings on button click -->
android:key="@string/pref_key_open_this_screen"
android:summary="@string/pref_summary_sample"
android:title="@string/pref_title_sample" >
<SwitchPreference
android:defaultValue="@string/pref_summary_enabled"
android:key="@string/pref_key_enabled"
android:title="@string/pref_title_enabled"
android:summary="@string/pref_summary_reminder_enabled"/>
<ListPreference
..
/>
<ListPreference
..
/>
</PreferenceScreen>
</PreferenceScreen>