So, I'm trying to sync with google docs without asking the user for their credentials. I use this code to get the authentication token:
AccountManager mgr = AccountManager.get(activity);
authToken = mgr.blockingGetAuthToken(account, DocsService.DOCS_SERVICE, true);
This returns an authentication tag that looks well formed. So, on my DocsService, I run:
service.setAuthSubToken(authToken);
However, when I try to use the API, I just get an authentication exception. Any ideas on how to approach this error?
edit: I have permission USE_CREDENTIALS.
source
share