title: Can only download HTTP/HTTPS URIs error
body: <p>I am generating an excel sheet from search results in my app when user selects 'generate excel' option provided in my app overflow actionbar. I could save that file in the location "file:///storage/emulated/0/Download/tempfile.xls" without any problem but I would like to provide the generated excel sheet in the download menu via DownloadManager like this -</p>
  
  <pre><code>String filepath = "file://" + Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS) + "/tempfile.xls";
          Uri uriDownloadFile = Uri.parse(filepath );
          DownloadManager.Request request = new DownloadManager.Request(uriDownloadFile);
          request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, "tempfile.xls");
          request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED); // to notify when download is complete
          request.allowScanningByMediaScanner();// if you want to be available from media players
          DownloadManager manager = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);
          manager.enqueue(request);
  </code></pre>
  
  <p>I tried to change the the local filepath to a uri using Uri.parse (second line of code above). However, I ended with the following error -</p>
  
  <pre><code>java.lang.IllegalArgumentException: Can only download HTTP/HTTPS URIs: file:///storage/emulated/0/Download/tempfile.xls
  </code></pre>