move listenCapture to ui thread to avoid the recursive asynctask call