title: Flash in an Android WebView - layering issue
body: <p>I am trying to have interactive buttons in an android WebView that contains flash. As a test, I set up a HTML to load in a flash through  with a set x/y size.</p>
  
  <pre><code>public class webz extends WebView {
  private Drawable image;
  public webz(Context context, AttributeSet attrs) {
      super(context, attrs);
      image=context.getResources().getDrawable(R.drawable.icon);
      getSettings().setPluginsEnabled(true);
  }
  @Override
  protected void onDraw(Canvas canvas) {
      super.onDraw(canvas);
      image.setBounds(100, 300, 150, 450);
      image.draw(canvas);
  }
  </code></pre>
  
  <p>}</p>
  
  <p>I set up a test image that would overlay itself half over the flash, half over the unused canvas.
  once loaded, the flash will load over the canvas draw, leaving only the part over the HTML.</p>
  
  <p><a href="https://i.stack.imgur.com/k1ITl.png" rel="nofollow noreferrer">LINK TO SCREENSHOT</a></p>
  
  <p>the answer to <a href="https://stackoverflow.com/questions/5095977/screen-blinking-when-using-a-webview-with-flash">this question</a> states that adobe's flash player creates a surfaceview inside of the webview. i assume this is the cause of the layering issue, but i have no idea how to overcome it.</p>
  
  <p>does anyone know how to override this? the button has to also send key events to the flash (like you press the on screen button, and the A key to sent to the flash). if you know how to do this as well, it would be very helpful</p>