title: WebView perform Crash when playing video and touching on it
body: <p>i am developing an application where i need to play video in webview android.</p>
  
  <p>video is playing perfectly until i touch on webview.
  when i touch on it application freeze for some time and after that only white screen for next every time i play my app.i dont know why it is causing.
  here is my code of my application for review please let me know what i am doing wrong with code</p>
  
  <p>i use this code </p>
  
  <p>my activity </p>
  
  <pre><code>  public class VideoViewActivity extends Activity {
  FrameLayout frame;
  WebView mVideoView;
  String viewSource;
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
  
      getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
  
      super.onCreate(savedInstanceState);
  
      setContentView(R.layout.video);
  
      frame = (FrameLayout) findViewById(R.id.videoview);
      mVideoView = new WebView(getBaseContext());
  
      boolean flashInstalled = false;
      try {
          PackageManager pm = getPackageManager();
          ApplicationInfo ai = pm.getApplicationInfo("com.adobe.flashplayer",
                  0);
          if (ai != null)
              flashInstalled = true;
  
      } catch (NameNotFoundException e) {
          flashInstalled = false;
  
          Toast.makeText(getBaseContext(), "Flash Player Not Installed!!",
                  Toast.LENGTH_SHORT).show();
      }
  
      mVideoView.setWebViewClient(new WebViewClient());
      mVideoView.setWebChromeClient(new WebChromeClient());
      mVideoView.getSettings().setJavaScriptEnabled(true);
      mVideoView.getSettings().setAppCacheEnabled(true);
      mVideoView.getSettings().setDomStorageEnabled(true);
      mVideoView.getTouchables();
      // how plugin is enabled change in API 8
      if (Build.VERSION.SDK_INT &lt; 8) {
          mVideoView.getSettings().setPluginsEnabled(true);
      } else {
          mVideoView.getSettings().setPluginState(PluginState.ON);
      }
      mVideoView
              .loadUrl("http://player.vimeo.com/video/24577973?player_id=player&amp;autoplay=1&amp;title=0&amp;byline=0&amp;portrait=0&amp;api=1&amp;maxheight=480&amp;maxwidth=800");
  
      frame.addView(mVideoView);
  
  }
  }
  </code></pre>
  
  <p>my xml layout file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:gravity="center"
  &gt;
  
  &lt;FrameLayout 
                  android:layout_width="fill_parent"
  android:layout_alignParentRight="true"
  android:layout_alignParentLeft="true" 
  android:layout_alignParentTop="true" 
  android:layout_alignParentBottom="true" 
  android:layout_height="fill_parent"
  android:layout_gravity="center"
                  android:id="@+id/videoview"
                  /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>and manifest file</p>
  
  <pre><code> &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.com"
  android:versionCode="1"
  android:versionName="1.0" &gt;
  
  &lt;uses-sdk
      android:minSdkVersion="8"
      android:targetSdkVersion="17" /&gt;
  
  &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name" android:hardwareAccelerated="true"
      android:theme="@style/AppTheme" &gt;
  
      &lt;activity
          android:name=".VideoViewActivity"
          android:label="Demo"              
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.Black.NoTitleBar"
          &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
  
  
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>Thanks</p>