A month ago I asked this question. Even with a Bounty nobody came up with a better answer then using the Imei of the device to identify the user and then sync the phone with the server.
Now I stumbled across the Android AccountManager classes. Would it be possible to use this classes to store a username and a password that could be acc...
I've seen AccountManager in the android SDK, and can see it is used for storing account information, but I can't find any general discussion of what it is intended for.
Anyone know of any helpful discussions of what the intention behind AccountManager is and what it buys you
Any opinions of what type of Accounts this is suitable for? ...
I'm trying to use AccountManager to store account information and have implemented an authenticator, but I keep getting exceptions like the below that crash the phone. Comparing with sample code this seems to be because I don't have (or particularly want) a SyncAdapter and associated service. Is there a trick to using AccountManager wi...
I have implemented my own accountAuthenticator and SyncAdapter, but when I click on the authorities list in Manage data and synchronization to sync it, the updating icon stays there forever and my syncAdapter's onPerformSync is not called at all. what's the problem?
...
I'm running the Calendar widget of the Android SDK2.1 on my device, and get authentication exception. It sounds that something is wrong with the accountmanager. How could I fixed that problem. Thanks!
Here is the log:
root@jacky-desktop:~# I/ActivityManager( 753): Starting activity: Intent { act=android.intent.action.MAIN cat=[android...
I'm building a webservice and would like to use the user's google account credentials.
The service runs on GAE and will have a web client and an Android native client.
This is my first attempt of something like this and I've been reading about OpenID and the Android AccountManager library.
I'm still not sure what are my options in ter...
Hi,
i need help to delete accounts which are displayed in “account and sync” from my app.
i want to delete google account, facebook account, corporate account, twitter account only from mobile.I'm using following code but google account(primary) didnt get deleted.whereas all other accounts like twitter, facebook got deleted.
andr...
I'm trying to retrieve the password of google account, but getting
security exception at String pwd = AccountManager.get(mContext).getPassword(account).
Also i have given permissions in androidManifest.xml to
account_manager, aunthenticator, get_account, manage account.
code :
android.accounts.Account[] gaccounts = AccountManager.get(...
I spend most of my time in an environment where I can package code with dependencies that are resolved at install time automatically. That's nice. I can install any item and the library needed to support it is automatically added if it doesn't already exist.
In Android, this isn't yet possible, so I need another way to share some reso...
I'm trying to use the AccountManager for access to third-party applications like Facebook, Twitter etc. Whenever I use the AccountManager and try to get a token, I am getting an error "invalid authTokenType". I was passing "ah" since this is what the examples seemed to suggest for google accounts.
Does anyone know what the authTokenTyp...
So I am trying to sync to google docs, without having to ask the user for his credentials. I use this code to get an auth-token:
AccountManager mgr = AccountManager.get(activity);
authToken = mgr.blockingGetAuthToken(account, DocsService.DOCS_SERVICE, true);
This returns a auth-token that looks well-formated. So on my DocsService I ru...