禁用应用程序的 Android O 自动填充服务 [英] Disabling Android O auto-fill service for an application

查看:24
本文介绍了禁用应用程序的 Android O 自动填充服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android O 具有支持字段自动填充的功能.有什么方法可以为特定应用程序禁用它.那就是我想强制我的应用程序不使用自动填充服务.

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.

有可能吗?

要阻止整个活动的自动填充,请在活动的 onCreate() 中使用它:

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 ?

推荐答案

有可能吗?

我不知道.当然,没有任何记录.

Not that I am aware of. Certainly, nothing is documented.

还有比这更好的方法吗?

Is there any better method than this ?

我不知道.

这篇关于禁用应用程序的 Android O 自动填充服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆