Method, as shown in the following example: You can also set hints programmatically using the The following example sets a 'password' hint on an Service correctly identifies your app's form factors, provideĪttribute. Might unexpectedly change as you update your app. However, if your app relies on these heuristics, autofill behavior The autofill service determines the type of each view using Input > Advanced > Input assistance > Autofill service.įor more information about configuring an emulator to test autofill, see The autofill service by navigating to Settings > System > Languages & When using an emulator, explicitly set an autofill service, because theĮmulator might not come with a default service.Īfter you install the test autofill service from the sample app, enable Test service when testing your app, such as the autofill service in the Level 26) and higher ship with an autofill service, we recommend you use a
Although most phones and tablets running Android 8.0 (API This section describes how to set up basic autofill functionality for your app.Īn autofill service must be configured on your device for your app to use theĪutofill framework. You can also optimize how your app works with theįramework. Apps that use standard views work with the autofill framework without requiring