title: WP background file transfer, more than 25 files
body: <p>according to this topic</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202959(v=vs.105).aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202959(v=vs.105).aspx</a></p>
  
  <p>I'm trying to download more than 25 mp3 files from a list, in background, I made lot of different tries, basically I tried to pass a list, remove the file downloaded and recall the function again... but doesn't work with app in background... maybe because it's a variable? should I store into isolated storage? here is the last code:</p>
  
  <pre><code>ObservableCollection&lt;File&gt; remoteFileList = new ObservableCollection&lt;File&gt;();
  
  public void downloadList()
  {
      if ((remoteFileList.Count &gt; 0) &amp;&amp; (BackgroundTransferService.Requests.Count() &lt; 5))
      {
          File t = remoteFileList.First();
          BackgroundTransferRequest transfer = startDownload(t.Name);
          transfer.TransferProgressChanged += new EventHandler&lt;BackgroundTransferEventArgs&gt;(transfer_TransferProgressChanged);
          remoteFileList.Remove(t);
      }
  }
  
  public void transfer_TransferStatusChanged(object sender, BackgroundTransferEventArgs e)
  {
      BackgroundTransferRequest b = e.Request as BackgroundTransferRequest;
      System.Diagnostics.Debug.WriteLine(b.TransferStatus);
      ProcessTransfer(e.Request);
      downloadList();
  }
  </code></pre>