So, i am using ExtAudioRecorder: http://i-liger.com/sites/default/files/ExtAudioRecorder.java My problem is that onPeriodNotification is called on the UI thread. What would be an ellegant sollution to this. Making new thread in every onPeriodNotification call seems very excessive. I tried initializing the recorder in new Thread(), but calls were still made on the UI thread.

有帮助吗?

解决方案

You can't. But what you can do is post a message to the second thread in the onPeriodNotification, and then return.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top