newSpellCheckerSession always returns null

前端 未结 2 1765
醉酒成梦
醉酒成梦 2021-01-18 00:44

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

    final TextServicesManager tsm = (TextServicesManage         


        
相关标签:
2条回答
  • 2021-01-18 01:07

    You may want to set the local explicitly, and set last parameter to false, as it checks the active locales on the device.

    final TextServicesManager tsm = (TextServicesManager) getSystemService(
            Context.TEXT_SERVICES_MANAGER_SERVICE);
    spellCheck = tsm.newSpellCheckerSession(null, Local.ENGLISH, this, false); 
    
    0 讨论(0)
  • 2021-01-18 01:24

    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.

    0 讨论(0)
提交回复
热议问题