Android Search Dialog soft keyboard stays open for too long
<p>I'm trying to use Android's built-in <a href="http://developer.android.com/guide/topics/search/search-dialog.html" rel="nofollow">Search Dialog</a>, and it's working fine except when I try to use it with a <a href="http://developer.android.com/reference/android/app/ProgressDialog.html" rel="nofollow">ProgressDialog</a>.  The basic chain of events it his:</p>

<ol>
<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>
</ol>

<p>This all happens fine except as soon as I submit the query the screen looks like this:</p>

<p><img src="http://i.stack.imgur.com/Qwvkh.png" alt="enter image description here"></p>

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

<p><a href="http://code.google.com/p/mediawikiprovider/source/browse/#hg%2Fsrc%2Forg%2Fcdmckay%2Fandroid%2Fprovider%2Fdemo" rel="nofollow">You can find the source code for the project at Google Code.</a></p>
