I\'m struggling to fetch a request token from google when trying to access the APIs. I\'m receiving the standard 400 response. The request i\'m sending is almost identical t
It should be m.init(new SecretKeySpec("anonymous&".getBytes(), "HmacSHA1"));
When the oauth_token_secret is empty, you still need the "&" joining the two secrets to make the complete signature key.
I would suggest using an OAuth library for this, in order to have a higher level of abstraction.
Checkout the following blog post for an OAuth interaction using Signpost and j2se :
http://blog.doityourselfandroid.com/2010/11/08/oauth-in-java-the-signpost-library/
The blog also contains some other info regarding OAuth.
Another important thing worth mentioning is to make sure your date/time settings are setup correctly on the client. When you interact with the service provider, and you end up sending wrong timestamps, your requests will get refused.