문제

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