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


how can disable spell check on textview's/edittext's.

i want when call settext() on text view call spell checker service creates async task. in application causes bug volume of edittexts call settext can create many tasks thread pool end getting rejectedexecutionexception.

06-25 09:26:14.442: e/forms(10981): java.util.concurrent.rejectedexecutionexception: task android.widget.textview$3@3a7e75dd rejected java.util.concurrent.threadpoolexecutor@257f6244[running, pool size = 5, active threads = 5, queued tasks = 128, completed tasks = 6382] 06-25 09:26:14.442: e/forms(10981):     @ java.util.concurrent.threadpoolexecutor$abortpolicy.rejectedexecution(threadpoolexecutor.java:2011) 06-25 09:26:14.442: e/forms(10981):     @ java.util.concurrent.threadpoolexecutor.reject(threadpoolexecutor.java:793) 06-25 09:26:14.442: e/forms(10981):     @ java.util.concurrent.threadpoolexecutor.execute(threadpoolexecutor.java:1339) 06-25 09:26:14.442: e/forms(10981):     @ android.os.asynctask.execute(asynctask.java:608) 06-25 09:26:14.442: e/forms(10981):     @ android.widget.textview.updatetextserviceslocaleasync(textview.java:8344) 06-25 09:26:14.442: e/forms(10981):     @ android.widget.textview.gettextserviceslocale(textview.java:8300) 06-25 09:26:14.442: e/forms(10981):     @ android.widget.textview.getspellcheckerlocale(textview.java:8337) 06-25 09:26:14.442: e/forms(10981):     @ android.widget.spellchecker.spellcheck(spellchecker.java:220) 06-25 09:26:14.442: e/forms(10981):     @ android.widget.editor.updatespellcheckspans(editor.java:541) 

i can't surround settext()s in try catch block spellcheckerservice called in other places eg. when view added view group.


Comments

Popular posts from this blog

c# - Where does the .ToList() go in LINQ query result -

android - CollapsingToolbarLayout: position the ExpandedText programmatically -

Listeners to visualise results of load test in JMeter -