title: Downloaded files get deleted automatically
body: <p>In my app, there are a few files that users can download. The files get downloaded <strong>via the android download manager</strong>. But, since a few weeks now, hundreds of users have been complaining that their files automatically keep deleting every 8-12 days, without them even uninstalling the app. (There might be many more users who haven't bothered to complain about the same.)</p>
  
  <p>Now, there could be a number of user-specific reasons why that would happen on a few devices. But considering the huge number of users, it seems that I might have been doing something wrong.</p>
  
  <p>Why would the system/download manager delete the files automatically? Is there a way to inform the system or the download manager to not delete certain files? Or should I just settle with renaming the files after downloading, so as to unlink them from the download manager, and hope that the problem gets solved with just that?</p>
  
  <p>Edit:</p>
  
  <p>Here's the code that I use to download the files:</p>
  
  <pre><code>DownloadManager.Request request = new DownloadManager.Request(Uri.parse(trackLink));
  request.setTitle(trackTitle);
  request.setDestinationInExternalPublicDir("Tracks", trackTitle + ".mp3");
  request.setVisibleInDownloadsUi(false);
  DownloadManager manager = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE);
  manager.enqueue(request);
  </code></pre>