Click here to Skip to main content
11,790,613 members (61,100 online)
Rate this: bad
Please Sign up or sign in to vote.
hi fellow developers ,

I am developing a android application in which i want my datasource to be Google spread sheets.I am begineer in this .I only know this part for getting google access token.What else do i have to do to access the google gmail spread sheets
i have also created a account manager
Please let me know the further steps.

I google it but i got the code for .net only for OAuth2
I need the OAuth2 for JAVA




public class oauth
    // Google code console info
    String Client_ID = "myid";
    String Client_Secret = "key";
    String scope = "";
    String Redirec_Url = "url";
    //setting oAuth2
//What to do,,, Please tell if any other library required 
                 AccountManager am = AccountManager.get(this);//this denotes to the activity 
		Bundle options = new Bundle();
		Account[] abc = am.getAccountsByType("");
elp me out ..i gogle it but found code for .net for OAuth2 ineed the code in JAVA
Thanks in advance
Posted 21-Jan-13 1:27am
Edited 23-Jan-13 19:57pm
Aksh@169 at 24-Jan-13 1:53am
Help me out someone.. i am stuck . .

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

First hit on google using "android OAuth2" is

Authenticating to OAuth2 Services[^]

should do the trick


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 1,154
1 Maciej Los 825
2 KrunalRohit 686
3 ppolymorphe 660
4 CPallini 621

Advertise | Privacy | Mobile
Web02 | 2.8.1509028.1 | Last Updated 24 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100