How to hide the soft keyboard after hitting the search dialog box
<p>I'm trying to use Android's built-in search dialog, and it's working fine except when I try to use it with a ProgressDialog. The basic chain of events it this:</p>

<ul>
<li>User press the search button, enters a query and submits it.</li>
<li>The SearchManager calls the search Activity's onCreate method.</li>
<li>In the onCreate method, I call an AsyncTask that runs a query and shows a ProgressDialog in the onPreExecute method and hides it in the onPostExecute method.</li>
<li>This all happens fine except as soon as I submit the query the screen looks like this:</li>
</ul>

<p>... which is pretty ugly. How can I prevent this from happening?</p>
