title: Is it possible to change the context of a WebView after it has been instantiated?
body: <p>I have a <code>WebView</code> I'm loading in an activity in order to have it preloaded so that it pops up immediately in a different <code>Activity</code> (launched from the first).</p>
  
  <p>The problem is that in order to instantiate a <code>WebView</code>, I have to pass in a <code>Context</code>, in this case it's the first mentioned above.</p>
  
  <p>So it works great, and the second <code>Activity</code> shows the <code>WebView</code> just fine.  The problem is that if I click a <code>&lt;select&gt;</code> dropdown in the <code>WebView</code>, its selector dialog shows up UNDER the WebView. It feels like the select doesn't work at all until you hit the back button and briefly see the selection dialog just before you return to the parent activity.</p>
  
  <p>It seems as though when I append the <code>WebView</code> to the layout in the second activity, it's modals get attached to that activity's window, but the <code>WebView</code> itself is attached to the parent activity's window, so it shows in a higher point in the hierarchy.</p>
  
  <p>How can I possibly change the <code>Context</code> of the <code>WebView</code> after it's been instantiated?</p>
  
  <p>This is a very difficult problem to solve -- I have to create the WebViews before the activity is started, but I also need the selection dialogs to work.</p>
  
  <p>Please if anyone can give me some insights here I'd greatly appreciate it.</p>
  
  <p>This is for an SDK project, so I will not have access to the parent activity.  Also, saveState isn't working, because the bulk of what is shown in the <code>WebView</code> is generated by JavaScript, and the full DOM stack doesn't transfer.</p>