JP,
Before I switched to using the google finance api, I used the following
to authenticate and it worked.
URL url = new URL(Finance.POSITION_URL);
URLConnection conn = url.openConnection();
conn.addRequestProperty("Authorization", "GoogleLogin " + auth);
conn.connect();
rkapps
https://play.google.com/store/apps/details?id=com.rkapps.financeFree
On Sunday, July 29, 2012 10:32:38 PM UTC-7, JP wrote:
>
> I am trying to authenticate with the Gmail atom feed using the
> authentication token of the Gmail account, obtained from AccountManager.
>
> I have no problem pulling the authentication token for a Google Account
> registered on the device, using AccountManagergetAuthToken() with the
> authTokenType "mail", but the authentication token does not register with
> the atom feed. I've played with a few variations, but all I get is a 401 /
> Unauthorized response from Google.
> Basically, I've tried to GET
> https://mail.google.com/mail/feed/atom/unreadadding in a "Authorization"
> header item with "Bearer <authentication
> token>", but that didn't work.
> Any ideas where the disconnect is?
>
>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en