I have an Android project and want to have XOAuth2 functionality so the user can automatically check his GMail / Hotmail / Yahoo without having to log on every time.
If my understanding is correct XOAuth2 is what is required in my app ;
a) sets Gmail to allow 3rd party access.
b) signs on using XOAuth2 (code required in Android app)
c) saves credentials in Android app
d) next time the user wants to check his Gmail messages the app sends the Token to Gmail and that allows immediate access with the need of userid and password. (same for Hotmail, Yahoo ... )
It is the same type of process also used for Facebook and Twitter etc ??
i) please confirm my understanding is correct or incorrect
ii) supply a complete working example code of - setting up XOAuth2 and accessing a Gmail account as described above so I can add that to code to my current project.
An existing project is preferred because I need this quickly so it is better that you do not have to create it but have it already or can even provide something off an existing app / tutorial site. Writing it from scratch is acceptable, if it is no more than 2 days.