android-autofill-manager

Save for autofill dialog not showing up

大憨熊 提交于 2020-12-12 10:30:26
问题 I have an activity that shows username UI, after entering that and tapping on continue button shows the enter password UI. On entering password and tapping on login button finishes the current activity and launches a new activity. On my device I selected Google autofill service, so on finish of the 1st activity I want "save for autofill?" dialog to show up, but it isn't. I prepared my app by adding autofillHints and nothing else in my activity. Should I add anything for the dialog to pop up?

Disabling Android O auto-fill service for an application

别说谁变了你拦得住时间么 提交于 2019-12-17 05:02:34
问题 Android O has the feature to support Auto-filling for fields. Is there any way I can disable it for a specific application. That is I want to force my application not to use the auto-fill service. Is it possible ? To block autofill for an entire activity, use this in onCreate() of the activity: getWindow() .getDecorView() .setImportantForAutofill(View.IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS); Is there any better method than this ? 回答1: Is it possible ? Not that I am aware of. Certainly,

How to disable the new Autofill feature from Android Oreo for espresso tests

删除回忆录丶 提交于 2019-12-05 12:55:32
问题 Running tests on android devices with sdk 26 causes them to fail because of the new Autofill feature that hides the fields when espresso are trying to click them. Im running my tests on firebase test lab so I cannot disable them manually on my tests devices. Some images: 1. Password is visible before clicking username field. 2. After clicking username field password field is hidden by this Autofill dialog: 3. After login it shows another Fill dialog: Espresso cant click now password field

How to disable the new Autofill feature from Android Oreo for espresso tests

你。 提交于 2019-12-04 00:16:35
Running tests on android devices with sdk 26 causes them to fail because of the new Autofill feature that hides the fields when espresso are trying to click them. Im running my tests on firebase test lab so I cannot disable them manually on my tests devices. Some images: 1. Password is visible before clicking username field. 2. After clicking username field password field is hidden by this Autofill dialog: 3. After login it shows another Fill dialog: Espresso cant click now password field since the autofill dialog is hiding my field and fail . Using AutofillManager#disableAutofillServices()

Disabling Android O auto-fill service for an application

喜欢而已 提交于 2019-11-26 20:30:28
Android O has the feature to support Auto-filling for fields. Is there any way I can disable it for a specific application. That is I want to force my application not to use the auto-fill service. Is it possible ? To block autofill for an entire activity, use this in onCreate() of the activity: getWindow() .getDecorView() .setImportantForAutofill(View.IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS); Is there any better method than this ? Is it possible ? Not that I am aware of. Certainly, nothing is documented. Is there any better method than this ? Not that I am aware of. albeee Currently