Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/android/mtp/MtpConstants#constants) \| [Ctors](https://developer.android.com/reference/android/mtp/MtpConstants#pubctors) \| [Methods](https://developer.android.com/reference/android/mtp/MtpConstants#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/mtp/MtpConstants#inhmethods)

# MtpConstants

*** ** * ** ***

` public final class MtpConstants `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.mtp.MtpConstants |

<br />

*** ** * ** ***

A class containing constants in the MTP and PTP specifications.

## Summary

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#ASSOCIATION_TYPE_GENERIC_FOLDER` Association type for objects representing file system directories. |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_3GP_CONTAINER` Format code for 3GP files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_AAC` Format code for AAC audio files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_ABSTRACT_AUDIO_ALBUM` Format code for audio albums |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_ABSTRACT_AUDIO_PLAYLIST` Format code for abstract audio playlists |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_ABSTRACT_AV_PLAYLIST` Format code for abstract AV playlists |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_ABSTRACT_DOCUMENT` Format code for abstract documents |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_ABSTRACT_IMAGE_ALBUM` Format code for image albums |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_ABSTRACT_MEDIACAST` Format code for abstract mediacasts |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_ABSTRACT_MULTIMEDIA_ALBUM` Format code for multimedia albums |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_ABSTRACT_VIDEO_ALBUM` Format code for video albums |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_ABSTRACT_VIDEO_PLAYLIST` Format code for abstract video playlists |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_AIFF` Format code for AIFF audio files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_ASF` Format code for ASF files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_ASSOCIATION` Format code for associations (folders and directories) |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_ASX_PLAYLIST` Format code for ASX playlist files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_AUDIBLE` Format code for Audible audio files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_AVI` Format code for AVI video files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_BMP` Format code for BMP image files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_DEFINED` Format code for unknown image files. |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_DNG` Format code for DNG files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_DPOF` Format code for DPOF files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_EXECUTABLE` Format code for executable files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_EXIF_JPEG` Format code for JPEG image files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_FLAC` Format code for FLAC audio files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_GIF` Format code for GIF image files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_HTML` Format code for HTML files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_JFIF` Format code for JFIF image files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_JP2` Format code for JP2 files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_JPX` Format code for JPX files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_M3U_PLAYLIST` Format code for M3u playlist files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_MP2` Format code for MP2 files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_MP3` Format code for MP3 audio files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_MP4_CONTAINER` Format code for MP4 files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_MPEG` Format code for MPEG video files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_MPL_PLAYLIST` Format code for MPL playlist files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_MS_EXCEL_SPREADSHEET` Format code for MS Excel spreadsheets |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_MS_POWERPOINT_PRESENTATION` Format code for MS PowerPoint presentatiosn |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_MS_WORD_DOCUMENT` Format code for MS Word documents |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_OGG` Format code for OGG audio files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_PICT` Format code for PICT image files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_PLS_PLAYLIST` Format code for PLS playlist files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_PNG` Format code for PNG image files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_SCRIPT` Format code for script files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_TEXT` Format code for text files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_TIFF` Format code for TIFF image files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_TIFF_EP` Format code for TIFF EP image files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_UNDEFINED` Undefined format code |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_UNDEFINED_AUDIO` Format code for undefined audio files files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_UNDEFINED_COLLECTION` Format code for undefined collections |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_UNDEFINED_DOCUMENT` Format code for undefined document files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_UNDEFINED_FIRMWARE` Format code for firmware files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_UNDEFINED_VIDEO` Format code for undefined video files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_WAV` Format code for WAV audio files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_WINDOWS_IMAGE_FORMAT` Format code for Windows image files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_WMA` Format code for WMA audio files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_WMV` Format code for WMV video files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_WPL_PLAYLIST` Format code for WPL playlist files |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#FORMAT_XML_DOCUMENT` Format code for XML documents |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_CLOSE_SESSION` Operation code for CloseSession |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_COPY_OBJECT` Operation code for CopyObject |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_DELETE_OBJECT` Operation code for DeleteObject |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_FORMAT_STORE` Operation code for FormatStore |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_GET_DEVICE_INFO` Operation code for GetDeviceInfo |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_GET_DEVICE_PROP_DESC` Operation code for GetDevicePropDesc |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_GET_DEVICE_PROP_VALUE` Operation code for GetDevicePropValue |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_GET_NUM_OBJECTS` Operation code for GetNumObjects |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_GET_OBJECT` Operation code for GetObject |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_GET_OBJECT_HANDLES` Operation code for GetObjectHandles |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_GET_OBJECT_INFO` Operation code for GetObjectInfo |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_GET_OBJECT_PROPS_SUPPORTED` Operation code for GetObjectPropsSupported |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_GET_OBJECT_PROP_DESC` Operation code for GetObjectPropDesc |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_GET_OBJECT_PROP_VALUE` Operation code for GetObjectPropValue |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_GET_OBJECT_REFERENCES` Operation code for GetObjectReferences |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_GET_PARTIAL_OBJECT` Operation code for GetPartialObject |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_GET_PARTIAL_OBJECT_64` Operation code for GetPartialObject64 |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_GET_STORAGE_INFO` Operation code for GetStorageInfo |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_GET_STORAGE_I_DS` Operation code for GetStorageIDs |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_GET_THUMB` Operation code for GetThumb |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_INITIATE_CAPTURE` Operation code for InitiateCapture |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_INITIATE_OPEN_CAPTURE` Operation code for InitiateOpenCapture |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_MOVE_OBJECT` Operation code for MoveObject |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_OPEN_SESSION` Operation code for OpenSession |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_POWER_DOWN` Operation code for PowerDown |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_RESET_DEVICE` Operation code for ResetDevice |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_RESET_DEVICE_PROP_VALUE` Operation code for ResetDevicePropValue |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_SELF_TEST` Operation code for SelfTest |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_SEND_OBJECT` Operation code for SendObject |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_SEND_OBJECT_INFO` Operation code for SendObjectInfo |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_SET_DEVICE_PROP_VALUE` Operation code for SetDevicePropValue |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_SET_OBJECT_PROP_VALUE` Operation code for SetObjectPropValue |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_SET_OBJECT_PROTECTION` Operation code for SetObjectProtection |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_SET_OBJECT_REFERENCES` Operation code for SetObjectReferences |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_SKIP` Operation code for Skip |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#OPERATION_TERMINATE_OPEN_CAPTURE` Operation code for TerminateOpenCapture |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#PROTECTION_STATUS_NONE` Object is not protected. |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#PROTECTION_STATUS_NON_TRANSFERABLE_DATA` Object's contents can not be transfered from the device, but the object may be moved or deleted and its properties may be modified. |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#PROTECTION_STATUS_READ_ONLY` Object can not be modified or deleted and its properties can not be modified. |
| `int` | `https://developer.android.com/reference/android/mtp/MtpConstants#PROTECTION_STATUS_READ_ONLY_DATA` Object can not be modified or deleted but its properties are modifiable. |

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/mtp/MtpConstants#MtpConstants()() ` |

| ### Public methods ||
|---|---|
| ` static boolean` | ` https://developer.android.com/reference/android/mtp/MtpConstants#isAbstractObject(int)(int format) ` Returns true if the object is abstract (that is, it has no representation in the underlying file system). |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Constants

### ASSOCIATION_TYPE_GENERIC_FOLDER

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int ASSOCIATION_TYPE_GENERIC_FOLDER
```

Association type for objects representing file system directories.

<br />

Constant Value: 1 (0x00000001)

### FORMAT_3GP_CONTAINER

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_3GP_CONTAINER
```

Format code for 3GP files

<br />

Constant Value: 47492 (0x0000b984)

### FORMAT_AAC

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_AAC
```

Format code for AAC audio files

<br />

Constant Value: 47363 (0x0000b903)

### FORMAT_ABSTRACT_AUDIO_ALBUM

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_ABSTRACT_AUDIO_ALBUM
```

Format code for audio albums

<br />

Constant Value: 47619 (0x0000ba03)

### FORMAT_ABSTRACT_AUDIO_PLAYLIST

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_ABSTRACT_AUDIO_PLAYLIST
```

Format code for abstract audio playlists

<br />

Constant Value: 47625 (0x0000ba09)

### FORMAT_ABSTRACT_AV_PLAYLIST

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_ABSTRACT_AV_PLAYLIST
```

Format code for abstract AV playlists

<br />

Constant Value: 47621 (0x0000ba05)

### FORMAT_ABSTRACT_DOCUMENT

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_ABSTRACT_DOCUMENT
```

Format code for abstract documents

<br />

Constant Value: 47745 (0x0000ba81)

### FORMAT_ABSTRACT_IMAGE_ALBUM

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_ABSTRACT_IMAGE_ALBUM
```

Format code for image albums

<br />

Constant Value: 47618 (0x0000ba02)

### FORMAT_ABSTRACT_MEDIACAST

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_ABSTRACT_MEDIACAST
```

Format code for abstract mediacasts

<br />

Constant Value: 47627 (0x0000ba0b)

### FORMAT_ABSTRACT_MULTIMEDIA_ALBUM

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_ABSTRACT_MULTIMEDIA_ALBUM
```

Format code for multimedia albums

<br />

Constant Value: 47617 (0x0000ba01)

### FORMAT_ABSTRACT_VIDEO_ALBUM

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_ABSTRACT_VIDEO_ALBUM
```

Format code for video albums

<br />

Constant Value: 47620 (0x0000ba04)

### FORMAT_ABSTRACT_VIDEO_PLAYLIST

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_ABSTRACT_VIDEO_PLAYLIST
```

Format code for abstract video playlists

<br />

Constant Value: 47626 (0x0000ba0a)

### FORMAT_AIFF

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_AIFF
```

Format code for AIFF audio files

<br />

Constant Value: 12295 (0x00003007)

### FORMAT_ASF

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_ASF
```

Format code for ASF files

<br />

Constant Value: 12300 (0x0000300c)

### FORMAT_ASSOCIATION

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_ASSOCIATION
```

Format code for associations (folders and directories)

<br />

Constant Value: 12289 (0x00003001)

### FORMAT_ASX_PLAYLIST

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_ASX_PLAYLIST
```

Format code for ASX playlist files

<br />

Constant Value: 47635 (0x0000ba13)

### FORMAT_AUDIBLE

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_AUDIBLE
```

Format code for Audible audio files

<br />

Constant Value: 47364 (0x0000b904)

### FORMAT_AVI

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_AVI
```

Format code for AVI video files

<br />

Constant Value: 12298 (0x0000300a)

### FORMAT_BMP

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_BMP
```

Format code for BMP image files

<br />

Constant Value: 14340 (0x00003804)

### FORMAT_DEFINED

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_DEFINED
```

Format code for unknown image files.

Will be used for the formats which are not specified in PTP specification. For instance, WEBP and WBMP.

<br />

Constant Value: 14336 (0x00003800)

### FORMAT_DNG

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_DNG
```

Format code for DNG files

<br />

Constant Value: 14353 (0x00003811)

### FORMAT_DPOF

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_DPOF
```

Format code for DPOF files

<br />

Constant Value: 12294 (0x00003006)

### FORMAT_EXECUTABLE

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_EXECUTABLE
```

Format code for executable files

<br />

Constant Value: 12291 (0x00003003)

### FORMAT_EXIF_JPEG

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_EXIF_JPEG
```

Format code for JPEG image files

<br />

Constant Value: 14337 (0x00003801)

### FORMAT_FLAC

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_FLAC
```

Format code for FLAC audio files

<br />

Constant Value: 47366 (0x0000b906)

### FORMAT_GIF

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_GIF
```

Format code for GIF image files

<br />

Constant Value: 14343 (0x00003807)

### FORMAT_HTML

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_HTML
```

Format code for HTML files

<br />

Constant Value: 12293 (0x00003005)

### FORMAT_JFIF

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_JFIF
```

Format code for JFIF image files

<br />

Constant Value: 14344 (0x00003808)

### FORMAT_JP2

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_JP2
```

Format code for JP2 files

<br />

Constant Value: 14351 (0x0000380f)

### FORMAT_JPX

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_JPX
```

Format code for JPX files

<br />

Constant Value: 14352 (0x00003810)

### FORMAT_M3U_PLAYLIST

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_M3U_PLAYLIST
```

Format code for M3u playlist files

<br />

Constant Value: 47633 (0x0000ba11)

### FORMAT_MP2

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_MP2
```

Format code for MP2 files

<br />

Constant Value: 47491 (0x0000b983)

### FORMAT_MP3

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_MP3
```

Format code for MP3 audio files

<br />

Constant Value: 12297 (0x00003009)

### FORMAT_MP4_CONTAINER

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_MP4_CONTAINER
```

Format code for MP4 files

<br />

Constant Value: 47490 (0x0000b982)

### FORMAT_MPEG

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_MPEG
```

Format code for MPEG video files

<br />

Constant Value: 12299 (0x0000300b)

### FORMAT_MPL_PLAYLIST

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_MPL_PLAYLIST
```

Format code for MPL playlist files

<br />

Constant Value: 47634 (0x0000ba12)

### FORMAT_MS_EXCEL_SPREADSHEET

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_MS_EXCEL_SPREADSHEET
```

Format code for MS Excel spreadsheets

<br />

Constant Value: 47749 (0x0000ba85)

### FORMAT_MS_POWERPOINT_PRESENTATION

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_MS_POWERPOINT_PRESENTATION
```

Format code for MS PowerPoint presentatiosn

<br />

Constant Value: 47750 (0x0000ba86)

### FORMAT_MS_WORD_DOCUMENT

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_MS_WORD_DOCUMENT
```

Format code for MS Word documents

<br />

Constant Value: 47747 (0x0000ba83)

### FORMAT_OGG

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_OGG
```

Format code for OGG audio files

<br />

Constant Value: 47362 (0x0000b902)

### FORMAT_PICT

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_PICT
```

Format code for PICT image files

<br />

Constant Value: 14346 (0x0000380a)

### FORMAT_PLS_PLAYLIST

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_PLS_PLAYLIST
```

Format code for PLS playlist files

<br />

Constant Value: 47636 (0x0000ba14)

### FORMAT_PNG

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_PNG
```

Format code for PNG image files

<br />

Constant Value: 14347 (0x0000380b)

### FORMAT_SCRIPT

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_SCRIPT
```

Format code for script files

<br />

Constant Value: 12290 (0x00003002)

### FORMAT_TEXT

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_TEXT
```

Format code for text files

<br />

Constant Value: 12292 (0x00003004)

### FORMAT_TIFF

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_TIFF
```

Format code for TIFF image files

<br />

Constant Value: 14349 (0x0000380d)

### FORMAT_TIFF_EP

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_TIFF_EP
```

Format code for TIFF EP image files

<br />

Constant Value: 14338 (0x00003802)

### FORMAT_UNDEFINED

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_UNDEFINED
```

Undefined format code

<br />

Constant Value: 12288 (0x00003000)

### FORMAT_UNDEFINED_AUDIO

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_UNDEFINED_AUDIO
```

Format code for undefined audio files files

<br />

Constant Value: 47360 (0x0000b900)

### FORMAT_UNDEFINED_COLLECTION

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_UNDEFINED_COLLECTION
```

Format code for undefined collections

<br />

Constant Value: 47616 (0x0000ba00)

### FORMAT_UNDEFINED_DOCUMENT

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_UNDEFINED_DOCUMENT
```

Format code for undefined document files

<br />

Constant Value: 47744 (0x0000ba80)

### FORMAT_UNDEFINED_FIRMWARE

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_UNDEFINED_FIRMWARE
```

Format code for firmware files

<br />

Constant Value: 47106 (0x0000b802)

### FORMAT_UNDEFINED_VIDEO

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_UNDEFINED_VIDEO
```

Format code for undefined video files

<br />

Constant Value: 47488 (0x0000b980)

### FORMAT_WAV

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_WAV
```

Format code for WAV audio files

<br />

Constant Value: 12296 (0x00003008)

### FORMAT_WINDOWS_IMAGE_FORMAT

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_WINDOWS_IMAGE_FORMAT
```

Format code for Windows image files

<br />

Constant Value: 47233 (0x0000b881)

### FORMAT_WMA

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_WMA
```

Format code for WMA audio files

<br />

Constant Value: 47361 (0x0000b901)

### FORMAT_WMV

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_WMV
```

Format code for WMV video files

<br />

Constant Value: 47489 (0x0000b981)

### FORMAT_WPL_PLAYLIST

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_WPL_PLAYLIST
```

Format code for WPL playlist files

<br />

Constant Value: 47632 (0x0000ba10)

### FORMAT_XML_DOCUMENT

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FORMAT_XML_DOCUMENT
```

Format code for XML documents

<br />

Constant Value: 47746 (0x0000ba82)

### OPERATION_CLOSE_SESSION

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_CLOSE_SESSION
```

Operation code for CloseSession

<br />

Constant Value: 4099 (0x00001003)

### OPERATION_COPY_OBJECT

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_COPY_OBJECT
```

Operation code for CopyObject

<br />

Constant Value: 4122 (0x0000101a)

### OPERATION_DELETE_OBJECT

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_DELETE_OBJECT
```

Operation code for DeleteObject

<br />

Constant Value: 4107 (0x0000100b)

### OPERATION_FORMAT_STORE

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_FORMAT_STORE
```

Operation code for FormatStore

<br />

Constant Value: 4111 (0x0000100f)

### OPERATION_GET_DEVICE_INFO

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_GET_DEVICE_INFO
```

Operation code for GetDeviceInfo

<br />

Constant Value: 4097 (0x00001001)

### OPERATION_GET_DEVICE_PROP_DESC

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_GET_DEVICE_PROP_DESC
```

Operation code for GetDevicePropDesc

<br />

Constant Value: 4116 (0x00001014)

### OPERATION_GET_DEVICE_PROP_VALUE

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_GET_DEVICE_PROP_VALUE
```

Operation code for GetDevicePropValue

<br />

Constant Value: 4117 (0x00001015)

### OPERATION_GET_NUM_OBJECTS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_GET_NUM_OBJECTS
```

Operation code for GetNumObjects

<br />

Constant Value: 4102 (0x00001006)

### OPERATION_GET_OBJECT

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_GET_OBJECT
```

Operation code for GetObject

<br />

Constant Value: 4105 (0x00001009)

### OPERATION_GET_OBJECT_HANDLES

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_GET_OBJECT_HANDLES
```

Operation code for GetObjectHandles

<br />

Constant Value: 4103 (0x00001007)

### OPERATION_GET_OBJECT_INFO

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_GET_OBJECT_INFO
```

Operation code for GetObjectInfo

<br />

Constant Value: 4104 (0x00001008)

### OPERATION_GET_OBJECT_PROPS_SUPPORTED

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_GET_OBJECT_PROPS_SUPPORTED
```

Operation code for GetObjectPropsSupported

<br />

Constant Value: 38913 (0x00009801)

### OPERATION_GET_OBJECT_PROP_DESC

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_GET_OBJECT_PROP_DESC
```

Operation code for GetObjectPropDesc

<br />

Constant Value: 38914 (0x00009802)

### OPERATION_GET_OBJECT_PROP_VALUE

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_GET_OBJECT_PROP_VALUE
```

Operation code for GetObjectPropValue

<br />

Constant Value: 38915 (0x00009803)

### OPERATION_GET_OBJECT_REFERENCES

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_GET_OBJECT_REFERENCES
```

Operation code for GetObjectReferences

<br />

Constant Value: 38928 (0x00009810)

### OPERATION_GET_PARTIAL_OBJECT

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_GET_PARTIAL_OBJECT
```

Operation code for GetPartialObject

<br />

Constant Value: 4123 (0x0000101b)

### OPERATION_GET_PARTIAL_OBJECT_64

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_GET_PARTIAL_OBJECT_64
```

Operation code for GetPartialObject64

<br />

Constant Value: 38337 (0x000095c1)

### OPERATION_GET_STORAGE_INFO

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_GET_STORAGE_INFO
```

Operation code for GetStorageInfo

<br />

Constant Value: 4101 (0x00001005)

### OPERATION_GET_STORAGE_I_DS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_GET_STORAGE_I_DS
```

Operation code for GetStorageIDs

<br />

Constant Value: 4100 (0x00001004)

### OPERATION_GET_THUMB

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_GET_THUMB
```

Operation code for GetThumb

<br />

Constant Value: 4106 (0x0000100a)

### OPERATION_INITIATE_CAPTURE

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_INITIATE_CAPTURE
```

Operation code for InitiateCapture

<br />

Constant Value: 4110 (0x0000100e)

### OPERATION_INITIATE_OPEN_CAPTURE

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_INITIATE_OPEN_CAPTURE
```

Operation code for InitiateOpenCapture

<br />

Constant Value: 4124 (0x0000101c)

### OPERATION_MOVE_OBJECT

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_MOVE_OBJECT
```

Operation code for MoveObject

<br />

Constant Value: 4121 (0x00001019)

### OPERATION_OPEN_SESSION

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_OPEN_SESSION
```

Operation code for OpenSession

<br />

Constant Value: 4098 (0x00001002)

### OPERATION_POWER_DOWN

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_POWER_DOWN
```

Operation code for PowerDown

<br />

Constant Value: 4115 (0x00001013)

### OPERATION_RESET_DEVICE

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_RESET_DEVICE
```

Operation code for ResetDevice

<br />

Constant Value: 4112 (0x00001010)

### OPERATION_RESET_DEVICE_PROP_VALUE

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_RESET_DEVICE_PROP_VALUE
```

Operation code for ResetDevicePropValue

<br />

Constant Value: 4119 (0x00001017)

### OPERATION_SELF_TEST

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_SELF_TEST
```

Operation code for SelfTest

<br />

Constant Value: 4113 (0x00001011)

### OPERATION_SEND_OBJECT

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_SEND_OBJECT
```

Operation code for SendObject

<br />

Constant Value: 4109 (0x0000100d)

### OPERATION_SEND_OBJECT_INFO

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_SEND_OBJECT_INFO
```

Operation code for SendObjectInfo

<br />

Constant Value: 4108 (0x0000100c)

### OPERATION_SET_DEVICE_PROP_VALUE

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_SET_DEVICE_PROP_VALUE
```

Operation code for SetDevicePropValue

<br />

Constant Value: 4118 (0x00001016)

### OPERATION_SET_OBJECT_PROP_VALUE

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_SET_OBJECT_PROP_VALUE
```

Operation code for SetObjectPropValue

<br />

Constant Value: 38916 (0x00009804)

### OPERATION_SET_OBJECT_PROTECTION

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_SET_OBJECT_PROTECTION
```

Operation code for SetObjectProtection

<br />

Constant Value: 4114 (0x00001012)

### OPERATION_SET_OBJECT_REFERENCES

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_SET_OBJECT_REFERENCES
```

Operation code for SetObjectReferences

<br />

Constant Value: 38929 (0x00009811)

### OPERATION_SKIP

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_SKIP
```

Operation code for Skip

<br />

Constant Value: 38944 (0x00009820)

### OPERATION_TERMINATE_OPEN_CAPTURE

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int OPERATION_TERMINATE_OPEN_CAPTURE
```

Operation code for TerminateOpenCapture

<br />

Constant Value: 4120 (0x00001018)

### PROTECTION_STATUS_NONE

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PROTECTION_STATUS_NONE
```

Object is not protected. It may be modified and deleted, and its properties may be modified.

<br />

Constant Value: 0 (0x00000000)

### PROTECTION_STATUS_NON_TRANSFERABLE_DATA

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PROTECTION_STATUS_NON_TRANSFERABLE_DATA
```

Object's contents can not be transfered from the device, but the object may be moved or deleted and its properties may be modified.

<br />

Constant Value: 32771 (0x00008003)

### PROTECTION_STATUS_READ_ONLY

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PROTECTION_STATUS_READ_ONLY
```

Object can not be modified or deleted and its properties can not be modified.

<br />

Constant Value: 32769 (0x00008001)

### PROTECTION_STATUS_READ_ONLY_DATA

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PROTECTION_STATUS_READ_ONLY_DATA
```

Object can not be modified or deleted but its properties are modifiable.

<br />

Constant Value: 32770 (0x00008002)

## Public constructors

### MtpConstants

```
public MtpConstants ()
```

<br />

<br />

## Public methods

### isAbstractObject

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static boolean isAbstractObject (int format)
```

Returns true if the object is abstract (that is, it has no representation in the underlying file system).

<br />

| Parameters ||
|---|---|
| `format` | `int`: the format of the object <br /> |

| Returns ||
|---|---|
| `boolean` | true if the object is abstract <br /> |