SpeechClass通过执行以下操作在主线程上调用:
final SpeechClass c = getSpeechClass(); // get the speech classView v = findViewById(R.id.anyview); //fetch a View: any one will dov.post(new Runnable(){ public void run(){ c.doSomething(); }});那应该在主线程上运行它。如果
doSomething要花一些时间,可能会使UI变慢,但是您可以解决这个问题。



