Questions tagged [accountmanager]

AccountManager keeps track of cloud login information on Android devices. It uses plugins to communicate with different kinds of services, and the user only has to enter the information once. Applications don't need to deal with passwords, and may instead ask for permission to gain access to specific accounts.

As a part of Google's Android SDK, the AccountManager can be used create a separation of the cloud account information entered by the user and the applications that make use of it. Since web services are constructed differently from each other, AccountManager uses plugins (authenticators) in order to communicate with them.

An application can ask for permission to access a certain account. If successful, the application receives a token, and never has to deal with the actual password. The user can find a list of all accounts that are used on the device under Settings > Accounts & sync, and may at any time remove an account that shouldn't be accessed anymore.

519 questions
0
votes
1 answer

get list of email addresses in email client using Account in android

I want to fetch list of email addresses from user's email client in my android app. So, that before sending an email through app user is presented with the list of email addresses and he can just select the ones he want to send the email. I am aware…
Sheetal Jadhwani
  • 75
  • 1
  • 3
  • 9
0
votes
1 answer

Trouble capturing activity result when firing Intent received from AccountManagerFuture

I am trying to follow Authenticating to OAuth2 Services and implement the part where an Intent is included in the Bundle provided by the AccountManagerFuture#getResult() call. The issue is, that even though the docs say to use…
Warlax
  • 2,459
  • 5
  • 30
  • 41
0
votes
2 answers

How to authenticate user, using the Google account user_id to third party socket server

This tutorial was a grate help in understanding the AccountManager and authToken: Nick's Blog Authenticating against App Engine from an Android app I still need to get that to work with a basic Java SSL/TSL socket server where for now my Android…
Erik
  • 5,039
  • 10
  • 63
  • 119
0
votes
1 answer

Retrieving auth token for facebook account configured in mobile via account manager in android

I am trying to get Auth token for a facebook account configured in device via account manager in android using accountManager.getAuthToken(account,"user_activities",null,Hellol10n.this, new GetAuthTokenCallback(), null);// account is of type…
Ramyavjr
  • 319
  • 3
  • 13
0
votes
1 answer

Error while trying trying to use oauth2 / AccountManagerFuture to authenticate with Google

An android app i'm working on uses Google oauth to authenticate users (via AccountManager). It's been working fine until yesterday and now whenever the app tries to authenticate and get a google auth token I get the following…
Paul Maddox
  • 15
  • 1
  • 4
0
votes
2 answers

Can Google Account auth tokens be shared between services?

I'd like to use users' Google accounts to authenticate (not authorize) them from a web application and to uniquely identify their Android device[s] that run a companion app. Communications between the platforms will be done via Google Cloud…
Jeff Axelrod
  • 27,676
  • 31
  • 147
  • 246
0
votes
1 answer

Trying to add a gmail account programmaticaly in android but getting error "caller uid 10040 is different than the authenticator's uid"

There is an emial application in android that allows to add email account. How can I add a gmail account in that application programmatically? I used this link Add account automatically but got SecurityException "caller uid 10040 is different…
blackfyre
  • 2,549
  • 5
  • 39
  • 58
0
votes
2 answers

What are values for authTokenType in the Android AccountManager getAuthToken?

The Facebook application for Android provides an authenticator for the AccountManager. I'm trying to get the access token with the method getAuthToken, but I do not know what are the possible values for the parameter authTokenType. What values are…
Edgar Domingues
  • 930
  • 1
  • 8
  • 17
0
votes
1 answer

Authenticate using OAuth and AccountManager

I'm having problem authenticating using OAuth and YouTube. The retrieval of the auth token goes fine but gdata.youtube.com claims that the auth key is invalid. I have re-generated the key using invalidateAuthToken, so the key hasn't expired. What am…
user634545
  • 9,099
  • 5
  • 29
  • 40
0
votes
1 answer

Android AccountManager - Add New Account

I'm using the Android AccountManager to authenticate a users google account for access to Google Drive. However, I want to allow the user to access Drive accounts that are not on their phone. For example, I have a work google account that is not…
Nick
  • 6,375
  • 5
  • 36
  • 53
0
votes
1 answer

Invalid Accountmanager auth token

Hello I'm trying to validate the token I've created with the accountManager from my php server but I keep getting the error "invalid token" from google server on my php server... Here is the code : private String updateToken(boolean invalidateToken,…
Karly
  • 389
  • 2
  • 7
  • 25
0
votes
1 answer

Syncadapter for more than one account type

Is it possible to have a syncadapter for several account-types? (e.g. com.google and com.facebook.auth.login) It seems the syncadapter.xml just accepts a single value like:
0
votes
1 answer

Remove a skype account via AccountManager.removeAccount() in Android

I'm trying to play a bit with Accounts via AccountManager on my Android Phone and would like to write an app to remove some accounts. My code works on facebook accounts but fails on skype account . Any clues on how to remove these kind of accounts…
0
votes
1 answer

Getting an auth token for appengine in ICS

I am having a problem retrieving an authentication token for an appengine application in Android. I am following the docs, in that I get the users google account, and attempt to get the auth token from the account manager which works fine. However I…
Theblacknight
  • 575
  • 5
  • 12
0
votes
2 answers

how to create non removable account

I want to create a phone only account which will hold phone only contacts and use should not remove this account (except factory reset). Is there any way,that can be specified either in account authenticator or sync adapter or via accountmanager…
user1375399
  • 223
  • 1
  • 2
  • 7
1 2 3
34
35