From 33bbd12a05005ac92a0ecf82695893148227bb22 Mon Sep 17 00:00:00 2001 From: Steve Howard Date: Mon, 2 Aug 2010 17:51:29 -0700 Subject: New download manager error code when we can't resume. Adding DownloadManager.ERROR_CANNOT_RESUME for when we can't resume an interrupted download (because the server didn't provide an ETag or doesn't support range requests), as well as the necessary private status code in Downloads.Impl. Change-Id: I5a66f1e1964198552ab2216aa6d3cc0db2254e21 --- core/java/android/provider/Downloads.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'core/java/android/provider') diff --git a/core/java/android/provider/Downloads.java b/core/java/android/provider/Downloads.java index c9b5512..6bf0d5b 100644 --- a/core/java/android/provider/Downloads.java +++ b/core/java/android/provider/Downloads.java @@ -1060,6 +1060,16 @@ public final class Downloads { public static final int STATUS_PRECONDITION_FAILED = 412; /** + * The lowest-valued error status that is not an actual HTTP status code. + */ + public static final int MIN_ARTIFICIAL_ERROR_STATUS = 489; + + /** + * Some possibly transient error occurred, but we can't resume the download. + */ + public static final int STATUS_CANNOT_RESUME = 489; + + /** * This download was canceled */ public static final int STATUS_CANCELED = 490; -- cgit v1.1