andreluizreis
6/26/2017 - 9:06 PM

PreferenceScreen Intent to another Activity. Font: https://stackoverflow.com/questions/14810393/start-activity-from-preference-screen-intent

<PreferenceCategory
    android:key="general"
    android:title="@string/general">

    <PreferenceScreen
        android:summary="Name, password and phone number"
        android:title="@string/account">

        <intent android:action="ACCOUNT_SETTINGS"/>
    </PreferenceScreen>
</PreferenceCategory>
<activity
    android:name=".frontend.settings.AccountActivity"
    android:label="@string/account"
    android:screenOrientation="portrait"
    android:theme="@style/AppTheme">
    <intent-filter>
        <action android:name="ACCOUNT_SETTINGS"/>
        <category android:name="android.intent.category.DEFAULT" />
    </intent-filter>
</activity>