- [Instructor] As previously mentioned,…the SignIn activity will implement the OnClickListener…once we assign this to the button's OnClickListener.…In the onClick method, handle SignIn button taps…by creating a SignIn method.…So let's first get the ID of the view.…And check that it matches up with our button's ID,…which is sign_in_button,…and then we call our signIn method.…

signIn method is private method.…And in the signIn method,…let's first create an intent called signInIntent.…And, for this Intent, we will call the…get signInIntent method that is…provided by GoogleSignInApi.…So we go Auth, GoogleSignInApi, getSignInIntent.…And we will pass in our GoogleAPiclient.…

Then we can start the Intent with startActivityForResult.…And we pass in our signInIntent,…and we create a new request code called SIGN_IN_REQUEST.…Starting the Intent in this way prompts…the user to select a Google account to sign in with.…If you had requested scopes beyond profile…and email in the GoogleSignInOptions,…then the user will be prompted to grant access…

Resume Transcript Auto-Scroll

Author

Released

2/10/2017

If you're an Android developer, you have access to an assortment of cloud-based services that can help you create and deliver a high-quality app. In this course, Albert Lo shines a spotlight on some of the most popular services and tools for Android developers, and demonstrates how they work by implementing them in a power failure monitoring application. He explores how to use Crashlytics to troubleshoot crashes, use Fabric.io to deploy an app for remote users so they can beta test it externally, structure the codebase to use any analytics provider, use Firebase remote configuration to configure parameters in runtime, and more.