Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

newSpellCheckerSession always returns null

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);        

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.

like image 436
Gabe Sechan Avatar asked May 31 '13 18:05

Gabe Sechan


1 Answers

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.

like image 191
Gabe Sechan Avatar answered Oct 14 '22 23:10

Gabe Sechan