newSpellCheckerSession总是返回nullnewSpellCheckerSession、null

2023-09-13 01:53:25 作者:mr.—独尊

我试图钩到内置在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.