accountmanager

Using the android Account Manager to keep a username even if the app is deleted

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...

Should I use android AccountManager?

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? ...

AccountManager without a SyncAdapter?

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...

Android syncAdapter not registered ?

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? ...

Account exception about Calendar widget of Android sdk 2.1

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...

Webservice credentials - OpenID/Android AccountManager ?

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...

Trying to delete email accounts from my app in Android.

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...

SecurityException in getPassword of accountManager in android.

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(...

multiple optional Android packages, an AccountManager implemented somewhere among them

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...

Invalid authTokenType

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...

Using Android AccountManager to get authtoken for gdata

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...