to top
Android APIs
Since: API Level 14


Provides classes that allow you to create spell checkers in a manner similar to the input method framework (for IMEs).

To create a new spell checker, you must implement a service that extends SpellCheckerService and extend the SpellCheckerService.Session class to provide spelling suggestions based on text provided by the interface's callback methods. In the SpellCheckerService.Session callback methods, you must return the spelling suggestions as SuggestionsInfo objects.

Applications with a spell checker service must declare the BIND_TEXT_SERVICE permission as required by the service. The service must also declare an intent filter with <action android:name="android.service.textservice.SpellCheckerService" /> as the intent’s action and should include a <meta-data> element that declares configuration information for the spell checker. For example:

    android:permission="android.permission.BIND_TEXT_SERVICE" >
    <intent-filter >
        <action android:name="android.service.textservice.SpellCheckerService" />
        android:resource="@xml/spellchecker" />

For example code, see the sample Spell Checker service app, and the sample Spell Checker client app.


SpellCheckerService SpellCheckerService provides an abstract base class for a spell checker. 
SpellCheckerService.Session This abstract class should be overridden by a concrete implementation of a spell checker.