I have Android client to my AppEngine server, both using Google Accounts. I would like to use AccountManager for getting accessToken for OAuth. So far I\'m using Client
I'm not sure what you are trying to do is possible through the App Engine OAuthService used in the article you are referring to. Also it is stated that AppEngine OAuthService only supports OAuth 1 but Android only supports OAuth 2 :) so you are screwed.
If you want to do cross Android - App Engine authentication, what I would do is:
https://www.googleapis.com/auth/userinfo.email
and https://www.googleapis.com/auth/userinfo.profile
) from the AccountManager.PS: I described getting OAuth 2 tokens using the Android AccountManager in this article. It was written pre-Ice Cream Sandwich but I'm hopping it is still valid. Basically the authTokenType
needs to be oauth2:{scopes}
, so for instance oauth2:https://www.googleapis.com/auth/tasks
for the Tasks API. There might be some better ways to do this now.