title: Android Help: How do open a remote Video file URL to play in MediaPlayer without having to open a browser window?
body: <p>How do open a remote Video file URL from a button click to play in the internal MediaPlayer without having to open a browser window?</p>
  
  <p>The video plays fine, but it always opens a browser window 1st which is annoying. </p>
  
  <p>This is what i am using already, but is it possible to launch the mediaplayer without the app opening a browser window first.</p>
  
  <p>Hope someone can help</p>
  
  <p>Thanks
  Lucy</p>
  
  <pre><code>final Button button = (Button) findViewById(R.id.play);  
       button.setOnClickListener(new Button.OnClickListener() {  
           public void onClick(View v) {  
               // Perform action on click 
               Uri uri = Uri.parse("http://domain.com/videofile.mp4");
               Intent intent = new Intent(Intent.ACTION_VIEW, uri);
  
               startActivity(intent);
  
              }
  
       });  
   }  
  </code></pre>