简体   繁体   中英

Adding metadata to the Android Account/AccountManager

I have login working using the AccountManager code, but by default the Account only stores the username and password. I also need to store the user's name, email, and some other data.

How do I go about storing this additional metadata with the Account via the AccountManager? It's also ok if this data is loaded each time the user logs in - do I add the additional params to a Bundle? If so, which one?

要添加和存储元数据,请使用AccountManager.getUserData和AccountManager.setUserData。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM