gpt4 book ai didi

android - 在 Android M 中添加到用户字典

转载 作者:搜寻专家 更新时间:2023-11-01 08:33:42 24 4
gpt4 key购买 nike

我想制作一个应用程序,将一堆单词添加到用户词典中。

我知道我可以使用 UserDictionary.Words.AddWords 但是它实际上并没有将单词添加到字典中。

看起来 M 中删除了“WRITE_USER_DICTIONARY”权限,是否有其他方法可以将单词添加到用户词典中,或者现在已经完全消失了?

最佳答案

不能再从 Marshmallow (API 23) 开始访问 UserDictionary.Words。

引用:Android Issue Tracker - Issue 199199

The user dictionary is now accessible only by the current spellchecker and keyboard. It was heavily abused by apps to scoop user dictionary. Out of the ten top apps using it there wasn't a single legit one. My favorite was the one which used a bug in keyguard to unlock the device after [it] "scans" [your] fingerprint from the screen! This is intended behavior.

关于android - 在 Android M 中添加到用户字典,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38417746/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com