I use AccountManager after implementing my own Authenticator and SyncAdapter. Therefore, I save the username and password of users in the account. I would like to save other settings for each user, for example, how many items that should be stored in the SyncAdapter locally.
I am afraid that I will have to use AccountManager.setUserData () and AccountManager.getUserData () instead of SharedPreferences. But I like the convenience of PreferenceFragment and its XML definition. Is it not possible to associate SharedPreferences with an account and allow PreferenceFragment to handle the associated SharedPreferences account?
source
share