Example Android code required to access GMail using OAuth2

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.

Skills: Android, Mobile App Development, OAuth

See more: project database using access gui using source code, example tier code create datalist mysql database using, example servlet code midlet code access mysql database, example source code application using gmm matlab, example php code create order report using fpdf, create access database using vb6 code, webview code example android, facebook android code example, post wall using facebook example android, facebook example source code android, code example android ibook, android code using places api, code mms example android, simple android code example, export access pdf using 2008 code, android code sip using asterisk, differentiate walking running activity using android code, user access control using php code, simple example android code

About the Employer:
( 158 reviews ) Mermaid Waters, Australia

Project ID: #21121801

Awarded to:


Dear Sir/Madam, Based on the description you have provided here I can definitely help you with your implementation. While i don't have experience specifically with the Gmail API (i had a quick look) it is extremely to More

$50 USD in 1 day
(11 Reviews)

4 freelancers are bidding on average $69 for this job


Hello, I have read complete detail description of project here and can help you with the same. I have 9+ years of experience in application development. Please connect with me on chat so that I can start a discussion. More

$40 USD in 3 days
(1 Review)

I have read your proposal, and understand what you want to do. I am a member of a team for developing cloud solution and I am responsible for developing sso. As you know, there are two main protocols for single sign-on More

$150 USD in 7 days
(2 Reviews)

Dear Prospect Hiring Manager. Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned "I can do th More

$35 USD in 7 days
(2 Reviews)