title: how can I stop videoview when I click backbutton?
body: <p>Hi When I click backbutton videoview from url dont stop. it is going to play how can I stop it when I click backbutton. I wrote within onbackpress but it doesnt work.</p>
  
  <pre><code>   private void playVideo(String mMp3) {
      try {
          VideoView video = (VideoView) findViewById(R.id.videoview);
          MediaController mediacontroller = new MediaController(
                  DetailActivity.this);
          mediacontroller.setAnchorView(video);
          Uri uri = Uri.parse(mMp3);
          video.setMediaController(mediacontroller);
          video.setVideoURI(uri);
          video.start();
      } catch (Exception e) {
          e.printStackTrace();
      }
  }
  
  @Override
  public void onBackPressed() {
      killMediaPlayer();if(null!=video){
          video.stopPlayback();
      }
      //stopVideo();
      Intent but3 = new Intent(DetailActivity.this, MainActivity.class);
      DetailActivity.this.startActivity(but3);
      DetailActivity.this.finish();
  </code></pre>