Load Flash plugin after it's been installed on Android
<p>My android app is my website loaded into a <code>WebView</code>. Flash is required to view the videos on my website, so I use Javascript to put up a download prompt when Flash is not detected:</p>

<p><img src="http://i.stack.imgur.com/vlUg8.png" alt="get flash"></p>

<p>When my site is viewed through the stock Browser app, all the user has to do is refresh the page to instantiate Flash. But this doesn't work on my <code>WebView</code> app. No matter how many times I reload or reset the plugin state, Flash does not instantiate.</p>

<pre><code>protected void onRestart() {
   super.onRestart();
   this.webView.getSettings().setPluginState(PluginState.ON);
   this.webView.reload();
}
</code></pre>

<p>The user is forced to kill the app and restart it for Flash to instantiate. This is a poor user experience, as regular users don't understand memory management. For the best experience, I would like to programatically instantiate Flash for the user after it's been installed. How would I do this?</p>
