title: android- DownloadManager SecurityException
body: <p>I'm trying ti use <code>DownloadManager</code> class in my app to download a file from a url.</p>
  
  <pre><code>DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));
      dm = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE);
      enqueue = dm.enqueue(request);
  </code></pre>
  
  <p>this code produces:</p>
  
  <pre><code>Caused by: java.lang.SecurityException: Permission Denial: opening provider com.android.providers.downloads.DownloadProvider from ProcessRecord{4099d440 5576:com.digitalaria.gama.sample.carousel/10134} (pid=5576, uid=10134) requires android.permission.ACCESS_ALL_DOWNLOADS or android.permission.ACCESS_ALL_DOWNLOADS
  </code></pre>
  
  <p>how to solve the problem?</p>