Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top