import com.google.gdata.client.authn.oauth.*; import com.google.gdata.util.*; import com.google.gdata.client.docs.*; import com.google.gdata.data.spreadsheet.*; import com.google.api.client.auth.oauth2.*; import com.google.api.client.auth.oauth2.AuthorizationCodeRequestUrl; import com.google.api.client.auth.oauth2.TokenRequest; @SuppressWarnings("unused") public class oauth { // Google code console info String Client_ID = "myid"; String Client_Secret = "key"; String scope = "https://spreadsheets.google.com/feeds https://docs.google.com/feeds"; 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("com.google"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)