Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I am planning to develope an android app, that syncs its data with a server over a syncadapter using a REST architecture. The question is, is it possible to use the google account to authenticate the user at the server? If it is possible, how? Do you have any code snippets for me?

- Chris

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Checkout this example by google: http://developer.android.com/resources/samples/SampleSyncAdapter/index.html

And take a look at these docs https://developers.google.com/accounts/docs/OAuth2

share|improve this answer
    
Maybe a silly question, but is there a "simple" way to download all the source code or do i have to dig through the directories by myself? –  Coxer Apr 15 '12 at 11:13
    
Ah, well I figured it out. The samples are downloadable using the sdk manager. Thanks so far! I ll let u know if it works out :D –  Coxer Apr 15 '12 at 11:28
    
Yup they should also be in your sdk folder under samples. Good luck! –  Jian Chen Apr 15 '12 at 18:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.