title: Android: Open URL with button for downloadable media but without Opening a browser window. How?
body: <p>Is it possible to open a URL without having the browser open up the link?</p>
  
  <p>I have followed a few tutorials but cannot manage this task</p>
  
  <p>The url i'am opening is a media content url (.dd) so i do not need to have the browser display anything, only access the url to then trigger the download.</p>
  
  <p>Here is the code which opens the url in a browser window then performs the download, but how do i open the URL without opening a browser window, almost like it is opening in the background?</p>
  
  <p>Hope someone can show me how?</p>
  
  <p>Thankyou, Lucy</p>
  
  <pre><code>Button openURLLButton = (Button) findViewById(R.id.save); // Retrieve the button from the XML file
      openURLButton.setOnClickListener(new View.OnClickListener() {  //Add a listener for when the button is pressed
          public void onClick(View v) {
              openUrl();          
          }
      });
  }
  
  protected void openUrl() {
      String url = "http://domain.com/download.dd"; 
      Intent i = new Intent(Intent.ACTION_VIEW); // Create a new intent - stating you want to 'view something'
      i.setData(Uri.parse(url));  // Add the url data (allowing android to realise you want to open the browser)
      startActivity(i); // Go go go!
  }
  </code></pre>
  
  <p>}</p>