Android Integrate Google Sign In

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  • newInstance() - To create single instance of Google Helper
  • initGoogleSignIn() - To initialize Google log in
  • getGoogleAccountDetails() - To get logged in Account details
  • signOut() - To log out user
  • getGoogleClient() - To get GoogleApiClient used

Parameters

ParameterDetail
TAGA String used while logging
GoogleSignInHelperA static reference for helper
AppCompatActivityAn Activity reference
GoogleApiClientA reference of GoogleAPIClient
RC_SIGN_INAn integer represents activity result constant
isLoggingOutA boolean to check if log-out task is running or not


Got any Android Question?