Posts

Showing posts with the label Android - Spelling Checker Tutorial

Android - Spelling Checker Tutorial

Image
The Android platform offers a spelling checker framework that lets you implement and access spell checking in your application. In order to use spelling checker , you need to implement SpellCheckerSessionListener  interface and override its methods. Its syntax is given below: public class HelloSpellCheckerActivity extends Activity implements SpellCheckerSessionListener { @Override public void onGetSuggestions ( final SuggestionsInfo [] arg0 ) { // TODO Auto-generated method stub } @Override public void onGetSentenceSuggestions ( SentenceSuggestionsInfo [] arg0 ) { // TODO Auto-generated method stub } } Next thing you need to do is to create an object of  SpellCheckerSession class. This object can be instantiated by calling  newSpellCheckerSession method of TextServicesManager class. This class handles interaction between application and text services. You need to request system service to instantiate it. It...