DriveStatusCodes
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Constant Summary
From class
com.google.android.gms.common.api.CommonStatusCodes
int |
API_NOT_CONNECTED |
|
int |
CANCELED |
|
int |
DEAD_CLIENT |
|
int |
DEVELOPER_ERROR |
|
int |
ERROR |
|
int |
INTERNAL_ERROR |
|
int |
INTERRUPTED |
|
int |
INVALID_ACCOUNT |
|
int |
NETWORK_ERROR |
|
int |
RESOLUTION_REQUIRED |
|
int |
SERVICE_DISABLED |
|
int |
SERVICE_VERSION_UPDATE_REQUIRED |
|
int |
SIGN_IN_REQUIRED |
|
int |
SUCCESS |
|
int |
SUCCESS_CACHE |
|
int |
TIMEOUT |
|
Public Method Summary
getStatusCodeString
(int statusCode) Returns an untranslated debug (not user-friendly!) string based on the current
status code.
Inherited Method Summary
From class
com.google.android.gms.common.api.CommonStatusCodes
getStatusCodeString
(int arg0)
From class java.lang.Object
Constants
public static final int
DRIVE_CONTENTS_TOO_LARGE
The operation failed because the given contents exceeded the maximum allowed
contents size.
Constant Value:
1508
public static final int
DRIVE_EXTERNAL_STORAGE_REQUIRED
This constant was deprecated.External storage is no longer required.
The Drive API requires external storage (such as an SD card), but no external
storage is mounted. This error is recoverable if the user installs external storage (if
none is present) and ensures that it is mounted (which may involve disabling USB
storage mode, formatting the storage, or other initialization as required by the
device).
This error should never be returned on a device with emulated external storage. On
devices with emulated external storage, the emulated "external storage" is always
present regardless of whether the device also has removable storage.
Constant Value:
1500
public static final int
DRIVE_RATE_LIMIT_EXCEEDED
The operation failed because the application attempted the operation too often. In
general, this is a temporary error and the operation may succeed once sufficient time
has elapsed. It is recommended that the application backs off with increasing duration
every time the operation fails with this error.
Constant Value:
1507
public static final int
DRIVE_RESOURCE_NOT_AVAILABLE
The operation failed because the requested resource does not exist or you are not
authorized to access it.
Constant Value:
1502
Public Methods
public static String
getStatusCodeString
(int
statusCode)
Returns an untranslated debug (not user-friendly!) string based on the current
status code.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eDriveStatusCodes\u003c/code\u003e provides specific status codes for Google Drive operations in Android development, extending \u003ccode\u003eCommonStatusCodes\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThese codes indicate reasons for operation failures, such as exceeding size limits (\u003ccode\u003eDRIVE_CONTENTS_TOO_LARGE\u003c/code\u003e) or rate limits (\u003ccode\u003eDRIVE_RATE_LIMIT_EXCEEDED\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDRIVE_RESOURCE_NOT_AVAILABLE\u003c/code\u003e signals that the target resource either doesn't exist or the user lacks access permissions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetStatusCodeString()\u003c/code\u003e method helps in debugging by providing a human-readable representation of the status code.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDRIVE_EXTERNAL_STORAGE_REQUIRED\u003c/code\u003e is deprecated as external storage is no longer a requirement for Drive API operations.\u003c/p\u003e\n"]]],[],null,["# DriveStatusCodes\n\npublic final class **DriveStatusCodes** extends [CommonStatusCodes](/android/reference/com/google/android/gms/common/api/CommonStatusCodes) \nDrive specific status codes, for use in [getStatusCode()](/android/reference/com/google/android/gms/common/api/Status#getStatusCode()). \n\n### Constant Summary\n\n|-----|-------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|\n| int | [DRIVE_CONTENTS_TOO_LARGE](/android/reference/com/google/android/gms/drive/DriveStatusCodes#DRIVE_CONTENTS_TOO_LARGE) | The operation failed because the given contents exceeded the maximum allowed contents size. |\n| int | [DRIVE_EXTERNAL_STORAGE_REQUIRED](/android/reference/com/google/android/gms/drive/DriveStatusCodes#DRIVE_EXTERNAL_STORAGE_REQUIRED) | *This constant was deprecated. External storage is no longer required.* |\n| int | [DRIVE_RATE_LIMIT_EXCEEDED](/android/reference/com/google/android/gms/drive/DriveStatusCodes#DRIVE_RATE_LIMIT_EXCEEDED) | The operation failed because the application attempted the operation too often. |\n| int | [DRIVE_RESOURCE_NOT_AVAILABLE](/android/reference/com/google/android/gms/drive/DriveStatusCodes#DRIVE_RESOURCE_NOT_AVAILABLE) | The operation failed because the requested resource does not exist or you are not authorized to access it. |\n\n### Inherited Constant Summary\n\nFrom class com.google.android.gms.common.api.CommonStatusCodes \n\n|-----|---------------------------------|---|\n| int | API_NOT_CONNECTED | |\n| int | CANCELED | |\n| int | DEAD_CLIENT | |\n| int | DEVELOPER_ERROR | |\n| int | ERROR | |\n| int | INTERNAL_ERROR | |\n| int | INTERRUPTED | |\n| int | INVALID_ACCOUNT | |\n| int | NETWORK_ERROR | |\n| int | RESOLUTION_REQUIRED | |\n| int | SERVICE_DISABLED | |\n| int | SERVICE_VERSION_UPDATE_REQUIRED | |\n| int | SIGN_IN_REQUIRED | |\n| int | SUCCESS | |\n| int | SUCCESS_CACHE | |\n| int | TIMEOUT | |\n\n### Public Method Summary\n\n|--------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [String](//developer.android.com/reference/java/lang/String.html) | [getStatusCodeString](/android/reference/com/google/android/gms/drive/DriveStatusCodes#getStatusCodeString(int))(int statusCode) Returns an untranslated debug (not user-friendly!) string based on the current status code. |\n\n### Inherited Method Summary\n\nFrom class com.google.android.gms.common.api.CommonStatusCodes \n\n|--------------------------------------------------------------------------|-------------------------------|\n| static [String](//developer.android.com/reference/java/lang/String.html) | getStatusCodeString(int arg0) |\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nConstants\n---------\n\n#### public static final int\n**DRIVE_CONTENTS_TOO_LARGE**\n\nThe operation failed because the given contents exceeded the maximum allowed\ncontents size. \nConstant Value: 1508 \n\n#### public static final int\n**DRIVE_EXTERNAL_STORAGE_REQUIRED**\n\n**This constant was deprecated.** \n\nExternal storage is no longer required. \nThe Drive API requires external storage (such as an SD card), but no external\nstorage is mounted. This error is recoverable if the user installs external storage (if\nnone is present) and ensures that it is mounted (which may involve disabling USB\nstorage mode, formatting the storage, or other initialization as required by the\ndevice).\n\nThis error should never be returned on a device with emulated external storage. On\ndevices with emulated external storage, the emulated \"external storage\" is always\npresent regardless of whether the device also has removable storage. \nConstant Value: 1500 \n\n#### public static final int\n**DRIVE_RATE_LIMIT_EXCEEDED**\n\nThe operation failed because the application attempted the operation too often. In\ngeneral, this is a temporary error and the operation may succeed once sufficient time\nhas elapsed. It is recommended that the application backs off with increasing duration\nevery time the operation fails with this error. \nConstant Value: 1507 \n\n#### public static final int\n**DRIVE_RESOURCE_NOT_AVAILABLE**\n\nThe operation failed because the requested resource does not exist or you are not\nauthorized to access it. \nConstant Value: 1502\n\nPublic Methods\n--------------\n\n#### public static [String](//developer.android.com/reference/java/lang/String.html) **getStatusCodeString** (int statusCode)\n\nReturns an untranslated debug (not user-friendly!) string based on the current\nstatus code."]]