


For example, to disable the Google sign-in option, you would set ENABLE_GOOGLE_SIGN_IN to “false.” These constants are specified in SignInLandingPageFragment.kt, which is part of the Universal Android Music Player (UAMP) Automotive app. Note: Each sign-in option in the sample code is associated with an ENABLE constant with that can be toggled on and off. Once you’ve decided which options you’re supporting (both the primary option and any backup options you may want to support), you can disable any remaining options in the sample code and focus on customizing the remaining screens. The sign-in flow in the sample code includes screens for all three methods. If your app doesn’t support Google sign-in, phone sign-in is the next best choice as primary option. Google sign-in should be presented as the primary option if your app supports it, because it is easiest for users. (recommended as a backup option – or primary option, if your app doesn’t support Google sign-in)Įnter PIN code from car screen on phone, or vice versaĮnter username (or email) and password for the app Your first step in adapting the sample code is to decide which of the 3 available sign-in methods you want to offer. For details, consult Add a Settings activity. If some functions of your app can be accessed anonymously, another option is to implement sign-in as a settings workflow. Note: The sample code discussed in this section involves implementing sign-in as a dedicated Sign-in activity, for cases where sign-in is required to use the app.

To find out how users will access your sign-in experience, visit Sign-in, settings & search. landscape mode.Īs you adapt the sample code for your app, the guidelines provided here will help you make sure your sign-in experience remains vehicle-optimized.

This code is designed to adapt to a variety of screen sizes, so you don’t need to deal with questions of portrait vs. The sample code is provided in the Universal Android Music Player (UAMP) Automotive app. Adjusting the content of the sign-in screens.Choosing a primary sign-in method (and any backup methods).You can create this flow by adapting the provided sample code. If sign-in is required for your app, you need to supply a sign-in flow featuring one or more of the suggested sign-in methods.
