Hi Rajendra,

The AuthSub example that you found is for a web application
authenticating a user.  The httpServletRequest would likely be passed
into a Servlet by a web app. server via the doGet(ServletRequest,
ServletResponse) or doPost(..) method.  If you're not developing a
stand-along Android application, you'll either likely want to look
into OAuth for installed applications, or consider trying the GData
Java Client API v2, which includes Android support.

For OAuth, you'll likely want to start at the following site:
http://code.google.com/apis/accounts/docs/OAuthForInstalledApps.html

Also, there seems to be a very popular blog on Android+OAuth at:
http://donpark.org/blog/2009/01/24/android-client-side-oauth

Finally, the GData Java Client v2 can be found at:
http://code.google.com/p/gdata-java-client/wiki/Version2

I hope that these help!  Please be sure to post your findings back to
the forums!

Cheers!
p...@google


On Apr 21, 5:25 am, Rajendra <[email protected]> wrote:
> hi,
>
> I am developing an application to access google health data on
> android. I am using gdata library(gdata-src.java-1.41.1 on 2.1
> platform)
>
> I am referring to article on 
> pagehttp://code.google.com/apis/gdata/docs/auth/authsub.html
>
> The following line:
>
> String singleUseToken =
> AuthSubUtil.getTokenFromReply(httpServletRequest.getQueryString());
>
> What does httpServletRequest refer to ? There is no declaration/
> definition provided in the article.
>
> If it is related to DoGet, DoPost methods, then how does it work ?
>
> Please provide me the inputs.
>
> Thanks and regards,
> Rajendra Waghmare.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Health 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 
> athttp://groups.google.com/group/googlehealthdevelopers?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Health 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/googlehealthdevelopers?hl=en.

Reply via email to