Skip to content

Instantly share code, notes, and snippets.

View varadmondkar's full-sized avatar
🏠
Working from home

Varad Mondkar varadmondkar

🏠
Working from home
View GitHub Profile
!SESSION 2017-10-25 09:59:00.144 -----------------------------------------------
eclipse.buildId=unknown
java.version=9
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -keyring /Users/varad/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -data @noDefault -keyring /Users/varad/.eclipse_keyring -showlocation
!ENTRY org.eclipse.osgi 4 0 2017-10-25 09:59:05.728
!MESSAGE Bundle reference:file:org.apache.ant_1.8.3.v201301120609/@4 not found.
@varadmondkar
varadmondkar / gist:cea5cfec6e68dd13792906607765c338
Created November 30, 2017 11:26 — forked from ianbarber/gist:5170508
Example Sign In activity for Google Sign-In on Android that retrieves an authorization code for use with server side authentication. See http://www.riskcompletefailure.com/2016/07/server-side-google-api-access-from.html for more background and links.
package com.example.anothersignintest;
import com.google.android.gms.auth.api.Auth;
import com.google.android.gms.auth.api.signin.GoogleSignInAccount;
import com.google.android.gms.auth.api.signin.GoogleSignInOptions;
import com.google.android.gms.auth.api.signin.GoogleSignInResult;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.OptionalPendingResult;
import com.google.android.gms.common.api.ResultCallback;