title: DownloadManager: understand retry policy and error codes
body: <p>According to the <a href="http://developer.android.com/reference/android/app/DownloadManager.html#COLUMN_REASON" rel="noreferrer">documentation</a>, if download is failed due to http error - the <code>COLUMN_REASON</code> should hold the specific http error code.</p>
  
  <p>the problem I'm having is that in practice, the only reason value I see when download fail is <a href="http://developer.android.com/reference/android/app/DownloadManager.html#ERROR_HTTP_DATA_ERROR" rel="noreferrer"><code>ERROR_HTTP_DATA_ERROR</code></a>  </p>
  
  <p>also, I see in logcat the actual failure http code in runtime, when the download is being stopped and re-try, but I don't see any way to get it from the download manager.</p>
  
  <p><strong>is it possible to get somehow this http code?</strong></p>
  
  <p>I'm using broadcast receiver to handle <a href="http://developer.android.com/reference/android/app/DownloadManager.html#ACTION_DOWNLOAD_COMPLETE" rel="noreferrer"><code>ACTION_DOWNLOAD_COMPLETE</code></a> , but I don't see any way to listen to download paused, and I'm getting a feeling that if I'll query download manager failure reason between the retry attempts it does - then I'll get the actual status code.</p>
  
  <p>is it possible to listen to "download pause" event without querying constantly the download manager?</p>
  
  <p>I would expect that will be such broadcast.</p>
  
  <p>the questions that I'd love to finally get answers to are:</p>
  
  <ul>
  <li>is it possible to listen to "download pause" event without querying constantly the download manager, and without active listener to the content resolver?</li>
  <li>is download manager (on API level 16+) supports https (ssl) ?</li>
  <li>what exactly is download manager retry policy? can I change it default retry policy?</li>
  </ul>