newSpellCheckerSession总是返回null [英] newSpellCheckerSession always returns null

查看:468
本文介绍了newSpellCheckerSession总是返回null的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图钩到内置在Android的拼写我的注意平板电脑检查服务。当我打电话

I'm trying to hook into the built in Android spell checking service on my Note tablet. When I call

    final TextServicesManager tsm = (TextServicesManager) getSystemService(
            Context.TEXT_SERVICES_MANAGER_SERVICE);
    spellCheck = tsm.newSpellCheckerSession(null, null, this, true);        

拼写检查总是空。该设备是4.1.2,所以它至少应该有字的建议的能力。有没有人使用这项服务,直接给我一些指点?该网站是非常稀疏这一点,因为它通常是通过键盘。

spellCheck is always null. The device is 4.1.2, so it ought to at least have the word suggestion capability. Has anyone used this service directly to give me some pointers? The web is very sparse about this, since it usually comes through the keyboard.

推荐答案

和我找到了答案 - 三星禁用该功能在此模型。所以我要么将不得不强制用户安装2的APK和一些跳火圈,或包含库源在我的apk。

And I found the answer- Samsung disabled the feature on this model. So I'm either going to have to force users to install 2 APKs and jump some hoops, or include the library as source in my apk.

这篇关于newSpellCheckerSession总是返回null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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