So I'm trying to sync the user in Google Docs without asking for my credentials. I use this code to get auth-token:
AccountManager mgr = AccountManager.get (activity); AuthToken = mgr.blockingGetAuthToken (account, DocsService.DOCS_SERVICE, true);
This gives a auth-token that is used well so I run my Docs service:
service.setAuthSubToken (authToken) ;
However, when I try to use the API, I get only one authentication exception.
EDIT: I have USE_CREDENTIALS permission. The problem is that the returned token is a ClientLogin token, not authSub token.
One major problem is that the Javaadata Java Client Library does not officially support Android. We recently added a note to the home page of the JavaData Java Client Library, which we recommend instead for Android.
Two samples have been provided that will be useful for you to start with the Google API Client Library for Java: and
Disclosure: I use both GDTA Java Clients I own the library and the Google API Client Library.
Comments
Post a Comment