title: Android: Set HttpUrlConnection speed limit
body: <p>is it possible to set a download speed limit for a HttpUrlConnection in Android?</p>
  
  <p>My app displays data. The data is retrieved from a web server. 
  There are two types of data that are loaded from the web server to display them in my app:
  - small files (about 1 MB)
  - big files (about 100 MB)</p>
  
  <p>The problem is:
  When I start to downlaod a big file, which is about 100 MB and may take about 5 minutes,
  my app is nearly unuseable in the meantime. </p>
  
  <p>A typical scenario is:
  User klicks on a big file --> big file is downloaded in the background.
  In the meantime the User wants to display another little file (1 MB, should take about a few seconds to load it from server ). But the problem is, that the first downlaod (loading the big file) uses the whole bandwith and therefore the download of the small file takes about 2 minutes (instead of a few seconds).</p>
  
  <p>So I would like to set a speet limit for big files (for example half of the bandwith etc.) or to implement some priority queue for downloads...</p>
  
  <p>How do I set the download limit?</p>