views:

31

answers:

1

does commitText() method of android.view.inputmethod.InputConnection allowed to be called from different thread than UI thread?

A: 

This is not really a straight answer for your question but if you want to access the UI thread through another thread you can always use AsyncTask. Override doInBackground with your normal thread task and override onProgressUpdate with the tasks that will need access to the UI thread. Whenever you need to do your tasks inside onProgressUpdate you call publishProgress from doInBackground.

gyller