Open jszmltr opened 8 years ago
@jackSzm This post shows how to launch an activity by using PreferenceScreen
:
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory
android:title="General Settings" />
<PreferenceScreen
android:key="account_settings"
android:title="Account Settings"
android:summary="Sync frequency, notifications, etc.">
<intent
android:action="fm.last.android.activity.Preferences.ACCOUNT_SETUP"
android:targetPackage="fm.last.android"
android:targetClass="fm.last.android.activity.Preferences" />
</PreferenceScreen>
</PreferenceScreen>
I am yet to understand how to use CheckBoxPreference
and SwitchPreference
in AccountManager
.
There is prefs.xml file with
isDebug
CheckBoxPreference
andlogsVerbose
SwitchPreference
but they are not used in the code.An example showing how to use them (if it's possible) would be super useful. If not then there is no need to have those prefs.xml in the first place.