public class Constants extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTION_HIDE
the intent that gets sent when deleting the notification of a completed download
|
static String |
ACTION_LIST
the intent that gets sent when clicking an incomplete/failed download
|
static String |
ACTION_OPEN
the intent that gets sent when clicking a successful download
|
static String |
ACTION_RETRY
The intent that gets sent when the service must wake up for a retry
|
static long |
ACTIVE_THREAD_WATCHDOG
The wake duration to check to see if the process was killed.
|
static int |
BUFFER_SIZE
The buffer size used to stream the data
|
static String |
DEFAULT_USER_AGENT
The default user agent used for downloads
|
static String |
EXP_PATH
Expansion path where we store obb files
|
static String |
FILENAME_SEQUENCE_SEPARATOR
When a number has to be appended to the filename, this string is used to separate the
base filename from the sequence number
|
static boolean |
LOGV
Enable verbose logging
|
static boolean |
LOGVV |
static boolean |
LOGX
Enable separate connectivity logging
|
static int |
MAX_DOWNLOADS
The maximum number of rows in the database (FIFO)
|
static int |
MAX_REDIRECTS
The maximum number of redirects.
|
static int |
MAX_RETRIES
The number of times that the download manager will retry its network
operations when no progress is happening before it gives up.
|
static int |
MAX_RETRY_AFTER
The maximum amount of time that the download manager accepts for
a Retry-After response header with a parameter in delta-seconds.
|
static int |
MIN_ARTIFICIAL_ERROR_STATUS
The lowest-valued error status that is not an actual HTTP status code.
|
static int |
MIN_PROGRESS_STEP
The minimum amount of progress that has to be done before the progress bar gets updated
|
static long |
MIN_PROGRESS_TIME
The minimum amount of time that has to elapse before the progress bar gets updated, in ms
|
static int |
MIN_RETRY_AFTER
The minimum amount of time that the download manager accepts for
a Retry-After response header with a parameter in delta-seconds.
|
static int |
RETRY_FIRST_DELAY
The time between a failure and the first retry after an IOException.
|
static int |
STATUS_BAD_REQUEST
This request couldn't be parsed.
|
static int |
STATUS_CANCELED
This download was canceled
|
static int |
STATUS_CANNOT_RESUME
Some possibly transient error occurred, but we can't resume the download.
|
static int |
STATUS_DEVICE_NOT_FOUND_ERROR
This download couldn't be completed because no external storage
device was found.
|
static int |
STATUS_FILE_ALREADY_EXISTS_ERROR
The requested destination file already exists.
|
static int |
STATUS_FILE_ERROR
This download couldn't be completed because of a storage issue.
|
static int |
STATUS_HTTP_DATA_ERROR
This download couldn't be completed because of an
error receiving or processing data at the HTTP level.
|
static int |
STATUS_HTTP_EXCEPTION
This download couldn't be completed because of an
HttpException while setting up the request.
|
static int |
STATUS_INSUFFICIENT_SPACE_ERROR
This download couldn't be completed due to insufficient storage
space.
|
static int |
STATUS_LENGTH_REQUIRED
This download cannot be performed because the length cannot be
determined accurately.
|
static int |
STATUS_NOT_ACCEPTABLE
This download can't be performed because the content type cannot be
handled.
|
static int |
STATUS_PRECONDITION_FAILED
This download was interrupted and cannot be resumed.
|
static int |
STATUS_SUCCESS
This download has successfully completed.
|
static int |
STATUS_TOO_MANY_REDIRECTS
This download couldn't be completed because there were
too many redirects.
|
static int |
STATUS_UNHANDLED_HTTP_CODE
This download couldn't be completed because of an
unspecified unhandled HTTP code.
|
static int |
STATUS_UNHANDLED_REDIRECT
This download couldn't be completed because of an HTTP
redirect response that the download manager couldn't
handle.
|
static int |
STATUS_UNKNOWN_ERROR
This download has completed with an error.
|
static String |
TAG
Tag used for debugging/logging
|
static long |
WATCHDOG_WAKE_TIMER
The wake duration to check to see if a download is possible.
|
| Constructor and Description |
|---|
Constants() |
public static final String TAG
public static final String EXP_PATH
public static final String ACTION_RETRY
public static final String ACTION_OPEN
public static final String ACTION_LIST
public static final String ACTION_HIDE
public static final String FILENAME_SEQUENCE_SEPARATOR
public static final String DEFAULT_USER_AGENT
public static final int BUFFER_SIZE
public static final int MIN_PROGRESS_STEP
public static final long MIN_PROGRESS_TIME
public static final int MAX_DOWNLOADS
public static final int MAX_RETRIES
public static final int MIN_RETRY_AFTER
public static final int MAX_RETRY_AFTER
public static final int MAX_REDIRECTS
public static final int RETRY_FIRST_DELAY
public static final boolean LOGX
public static final boolean LOGV
public static final boolean LOGVV
public static final int STATUS_SUCCESS
public static final int STATUS_BAD_REQUEST
public static final int STATUS_NOT_ACCEPTABLE
public static final int STATUS_LENGTH_REQUIRED
public static final int STATUS_PRECONDITION_FAILED
public static final int MIN_ARTIFICIAL_ERROR_STATUS
public static final int STATUS_FILE_ALREADY_EXISTS_ERROR
public static final int STATUS_CANNOT_RESUME
public static final int STATUS_CANCELED
public static final int STATUS_UNKNOWN_ERROR
public static final int STATUS_FILE_ERROR
STATUS_INSUFFICIENT_SPACE_ERROR
and STATUS_DEVICE_NOT_FOUND_ERROR when appropriate.public static final int STATUS_UNHANDLED_REDIRECT
public static final int STATUS_UNHANDLED_HTTP_CODE
public static final int STATUS_HTTP_DATA_ERROR
public static final int STATUS_HTTP_EXCEPTION
public static final int STATUS_TOO_MANY_REDIRECTS
public static final int STATUS_INSUFFICIENT_SPACE_ERROR
public static final int STATUS_DEVICE_NOT_FOUND_ERROR
public static final long WATCHDOG_WAKE_TIMER
public static final long ACTIVE_THREAD_WATCHDOG
Copyright © 2012–2014 simpligility technologies inc.. All rights reserved.