I am trying to get an access token to use the Google Play Android Developer API, and I got this far using the Google API Java Client documentation example:
Got it. You have to call credential.refreshToken() before credential.getAccessToken(). It doesn't say this anywhere in the documentation but that's what does it.