title: Trying to open SELECT tag in Android WebView crashes the application
body: <p>A <a href="http://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=2&amp;ved=0CC0QFjAB&amp;url=https://stackoverflow.com/questions/4697908/html-select-control-disabled-in-android-webview-in-emulator&amp;ei=5NgzT9T4LYnb0QW85fGlAg&amp;usg=AFQjCNH2zpDiUCCJDekb8iL-WY4J9qSOvw&amp;sig2=GX73w8jNQopdCYdDJDjQYw" rel="nofollow noreferrer">similar question</a> was asked about a year ago, and wasn't quite resolved, but I'm gonna try my luck anyhow, maybe someone knows this.</p>
  
  <p>I have this application that runs a couple of HTML pages in a WebView. Everything looks nice and works OK, until you try to open a SELECT tag - boom, application crashes.
  Here's a trace stack, if this helps:</p>
  
  <blockquote>
    <p>Thread [&lt;1> main] (Suspended (exception WindowManager$BadTokenException)) 
        AlertDialog(Dialog).show() line: 247<br>
        WebView$InvokeListBox.run() line: 7841<br>
        WebView$PrivateHandler(Handler).handleCallback(Message) line: 587<br>
        WebView$PrivateHandler(Handler).dispatchMessage(Message) line: 92<br>
        Looper.loop() line: 130 
        ActivityThread.main(String[]) line: 3859<br>
        Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]<br>
        Method.invoke(Object, Object...) line: 507<br>
        ZygoteInit$MethodAndArgsCaller.run() line: 840<br>
        ZygoteInit.main(String[]) line: 598 
        NativeStart.main(String[]) line: not available [native method]  </p>
  </blockquote>
  
  <p>(What does AlertDialog have to do with opening a select box is beyond me. And no, there's no script associated with the SELECT that opens an Alert).</p>
  
  <p>Now, here's the best part. I'm testing the app on 2 devices, Samsung Galaxy S2 with OS 2.3.3, and Motorola RAZR XT910 with OS 2.3.5. On Samsung everything works wonderful. On RAZR, however, the above happens.</p>
  
  <p>The pages are pretty heavy with CSS and JavaScript, but it's crashing even if everything is removed. In fact, an empty HTML with a single SELECT control still crashes.
  A few things mentioned in the question from year ago that I did try:</p>
  
  <ul>
  <li>Removing all absolute and fixed positioned elements from the HTML (in fact I removed the entire CSS just to see if it has any effect - it doesn't).</li>
  <li>Ensuring the SELECT is written by-the-book, no bogus attributes / tags.</li>
  </ul>
  
  <p>Nothing helped.</p>
  
  <p>Does anyone have the slightest clue as to what might be causing this?</p>