pause a runnable thread and wait for user input
<p>Lets say I have to copy a bunch of files from one location to another. This I will do in an AsyncTask so I can easily display a progressBar while the operation is happening. </p>

<p>But lets say one fo the files being copied already exists in the new location, can then pause the asynctask and display an alert dialog saying skip or overwrite?</p>

<p>From what I have understood its not possible inside the asynctask. But is there a smart way to achieve something similar? Or should I go through the list, that might be 1000+ files, before and check if they exist in the new location?</p>

<p>What would be the most efficient way?</p>
