title: How can I destroy the WebView Activity and the video in WebView?
body: <p>I played a swf video in a webview, when I press back_key, the sound still exists.. I don't know how to destroy it...plz help me, code is as following:</p>
  
  <pre><code>public class Video extends Activity {
      private WebView webview = null;
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
              WindowManager.LayoutParams.FLAG_FULLSCREEN);
          setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
          Intent intent = getIntent();
          String url = intent.getExtras().getString("Url");
          Log.i("URL OF VIDEO IS", url);
          setTitle("Video");
          requestWindowFeature(Window.FEATURE_NO_TITLE);
          setContentView(R.layout.webpageview);
          webview = (WebView) findViewById(R.id.webview);
          webview.getSettings().setPluginsEnabled(true);
          webview.getSettings().setJavaScriptEnabled(true);
          webview.loadUrl(url);
      }
  
      @Override
      public boolean onKeyDown(int keyCode, KeyEvent event) {
          if (keyCode == KeyEvent.KEYCODE_BACK) {
              //How can I destroy the Activity? I tried finish() it, but it doesn't works.
              webview.removeAllViews();
              return super.onKeyDown(keyCode, event);
          } else {
              return super.onKeyDown(keyCode, event);
          }
      }
  }
  </code></pre>