| Google Sign In with Helper class Add below to your build.gradle out of android tag: Add below helper class to your util package: Add below code to your OnActivityResult in Activity file: 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 | Parameter | Detail | | TAG | A String used while logging | | GoogleSignInHelper | A static reference for helper | | AppCompatActivity | An Activity reference | | GoogleApiClient | A reference of GoogleAPIClient | | RC_SIGN_IN | An integer represents activity result constant | | isLoggingOut | A boolean to check if log-out task is running or not |
|