com.google.gdata.client.GoogleService.setUserToken(???)

Put your problem here if it does not fit any of the other categories.

com.google.gdata.client.GoogleService.setUserToken(???)

Postby sweetleon » Fri Jan 08, 2010 7:52 am

Hello,

I've got working code that uses the gdata to retrieve feeds from my user's Google Finance portfolios, but I had to use setUserCredentials(username,password). What I'd like to do is avoid asking the user for their username/password since the Android device already has access to their Google account.

I believe I should be able to do this with setUserToken(String), but I can't figure out how to get the appropriate token from Android. I've tried AccountManager.get(context).blockingGetAuthToken() but that's either not the correct call or I'm passing it the wrong arguments.

Has anyone gotten gdata working with the user's existing Google credentials on the phone?

Thanks in advance,
Lenny
sweetleon
Freshman
Freshman
 
Posts: 6
Joined: Fri Jan 08, 2010 7:41 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 22 guests