Questions tagged [android-spellcheck]

The Android platform offers a spelling checker framework that lets you implement and access spell checking in your application. The framework is one of the Text Service APIs offered by the Android platform.

To use the framework in your app, you create a special type of Android service that generates a spelling checker session object. Based on text you provide, the session object returns spelling suggestions generated by the spelling checker.

LifeCycle

LifeCycle

To initiate spell checking, your app starts its implementation of the spelling checker service. Clients in your app, such as activities or individual UI elements, request a spelling checker session from the service, then use the session to get suggestions for text. As a client terminates its operation, it closes its spelling checker session. If necessary, your app can shut down the spelling checker service at any time.

For more details

13 questions
7
votes
4 answers

Disable spell check in TextView

I have many layouts in my app that use TextView to display some sentence fetched from back-end. The problem is, sometimes the text to be displayed contains some words which are not in the english dictionary, so I get a red underline beneath those…
Amit Tiwari
  • 3,684
  • 6
  • 33
  • 75
4
votes
0 answers

IndexOutOfBoundsException when selecting an item from auto-complete drop down

I am using TextInputLayout and TextInputEditText in my app along with android:inputType="textAutoComplete" and I don't allow space between two words so if I select an item with a space in auto-complete drop-down or spellcheck, I run into an…
Anil Gorthy
  • 869
  • 3
  • 13
  • 30
2
votes
0 answers

Android Spell Checker not switching to different language

I'm having issues with default android spell checker: it doesn't want to switch to a different language. Instead it uses default system language for spell check. Spell Checker works with default language, but when I change Locale to a different…
1
vote
1 answer

Android - How to get a Session from my Spell Checker Service?

I am trying to implement a spell checker service as described here called SampleSpellCheckerService but it seems the tutorial is incomplete and the source code for it does not seem to be available. I am struggling with how to get a session from my…
1
vote
0 answers

Android spell checking with HTML

Android's native browser does not support the spellcheck="true" HTML varible, is there a replacement I could use from the standard webView, e.g. crosswalk that would support spellcheck="ture"? Or is should I use the spell checker frame work, and…
Lawtonj94
  • 309
  • 1
  • 5
  • 16
0
votes
1 answer

Suppress Android Studio spell check within a specific resource file

I have a case of a lot of UI strings in Android strings.xml resource files, such as sol3, which are not words, and which do not belong in a dictionary. I would like to disable lint spell check for those strings, on a per-element basis, something…
0
votes
1 answer

How to implement correction suggestions without Spell checker framework?

I use Spell checker framework to display suggestions on my custom Android keyboard. I works fine, but not on Samsung devices. How I can fix this, use another way or may be some library? My code val spellCheckerSession = …
MaxAstin
  • 463
  • 5
  • 14
0
votes
1 answer

Android SpellChecker not working if keyboard is showing

I have a simple activity that use SpellCheckerSession to suggest similar match of a word. but if keyboard is showing spellChecker do not working. maybe its because of keyboard is using spell checker too. my simplified activity is: public class…
0
votes
1 answer

Spell checker framework not returning suggestions

I am trying to implement a spell check for an editext in android studio. The framework shall validates the last word typed by the user. The problem is the spell checker framework is not returning suggestions and is not showing any error. Here is an…
0
votes
0 answers

Disable SpellCheck on all TextView's in an activity or project wide

How can I disable spell check on all TextView's/EditText's. I want to do this as when you call setText() on a text view it will eventually call the spell checker service which creates an async task. In my application this causes a bug where the…
tomandro
  • 185
  • 1
  • 11
0
votes
2 answers

Enable spell Checker in Samsung Devices - Android

In my application i have One EditText. I test my application in Google Nexus, Lenovo and Samsung Devices. Other than Samsung Device When i type wrong word it shows with an red underline. But in Samsung device it is not working. I didn't do anything…
Amsheer
  • 7,046
  • 8
  • 47
  • 81
-3
votes
4 answers

android spinner - how to show only text after select item

I have Spinner with custom layout in Android Studio: user can choose item with custom layout ( Image + text) I need to view only text on spinner after selected not full layout NOT LIKE THIS: My custom Adapter: public class ColorAdapter2 extends…
Fadi
  • 181
  • 5
  • 15
-3
votes
1 answer

How to hide red underline of spellcheck without disabling spellcheck

Is there any way to hide the red underline of spellcheck errors in default android edittext. I don't want to disable the spellcheck or autocorrect. I need to take a screenshot(getting bitmap from edittext) of edittext with content which may have…
Vijay
  • 545
  • 1
  • 5
  • 15