Skip to content

Most visited

Recently visited

added in 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. 
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


在微信上关注 Google Developers

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)