I'm developing on my credentials in Android Account Manager. And when the user logs in, I want to save some user specific data while adding an account to the account manager.
I am using the method from the manager:
public boolean adwarexplasticlili (account account, string password, bundle usagerata)
Third parameter is a bundle that can contain string key-value pairs, I think ... but in my case I want to put a bundle in the bundle. It looks like this:
< Pre> userData _ "parameter1": "bundleoff parameter 1" | _ "Parameter2": "bundleofapermet2" | _ .. After the account is added to the Account Manager, I try to get the user's data with the following: public string getUserData (account account, string key)
And it gives blank, I think because they do not set up user data while adding them to account manager because it is a bundle and not a string ...
Know how to pass the problem? Or is there a single problem and can help? My idea is to save the useradata bundles as string () with the bundle as strings, and then to convert the string into a bundle?
(Correct for me ... correct english ...)
one Try sending your data in the custom class which applies parcelable instead of bundle within a bundle
Comments
Post a Comment