# Print output for @column tags ?> android.service.textservice - Android SDK | Android Developers

Most visited


Recently visited


android.service.textservice

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:

 <service
     
android:label="@string/app_name"
     
android:name=".SampleSpellCheckerService"
     
android:permission="android.permission.BIND_TEXT_SERVICE" >
     
<intent-filter >
         
<action android:name="android.service.textservice.SpellCheckerService" />
     
</intent-filter>
     
<meta-data
         
android:name="android.view.textservice.scs"
         
android:resource="@xml/spellchecker" />
 
</service>
 

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

Classes


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. 

Browse this site in English?

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

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