ml">HandlerThread</a></code>,
be sure that your UI thread does not block while waiting for the worker thread to
complete&mdash;do not call <code><a href="../../reference/java/lang/Object.html#wait()">Thread.wait()</a></code> or
<code><a href="../../reference/java/lang/Thread.html#sleep(long)">Thread.sleep()</a></code>. Instead of blocking while waiting for a worker
thread to complete, your main thread should provide a <code><a href="../../reference/android/os/Handler.html">Handler</a></code> for the other t