Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

MediaStore.Files.FileColumns

public static interface MediaStore.Files.FileColumns
implements MediaStore.MediaColumns

android.provider.MediaStore.Files.FileColumns


File metadata columns.

Summary

Constants

String MEDIA_TYPE

The media type (audio, video, image or playlist) of the file, or 0 for not a media file

int MEDIA_TYPE_AUDIO

Constant for the MEDIA_TYPE column indicating that file is an audio file.

int MEDIA_TYPE_IMAGE

Constant for the MEDIA_TYPE column indicating that file is an image file.

int MEDIA_TYPE_NONE

Constant for the MEDIA_TYPE column indicating that file is not an audio, image, video or playlist file.

int MEDIA_TYPE_PLAYLIST

Constant for the MEDIA_TYPE column indicating that file is a playlist file.

int MEDIA_TYPE_VIDEO

Constant for the MEDIA_TYPE column indicating that file is a video file.

String MIME_TYPE

The MIME type of the media item.

String PARENT

The index of the parent directory of the file

String TITLE

The title of the media item.

Inherited constants

Constants

MEDIA_TYPE

Added in API level 11
public static final String MEDIA_TYPE

The media type (audio, video, image or playlist) of the file, or 0 for not a media file

Constant Value: "media_type"

MEDIA_TYPE_AUDIO

Added in API level 11
public static final int MEDIA_TYPE_AUDIO

Constant for the MEDIA_TYPE column indicating that file is an audio file.

Constant Value: 2 (0x00000002)

MEDIA_TYPE_IMAGE

Added in API level 11
public static final int MEDIA_TYPE_IMAGE

Constant for the MEDIA_TYPE column indicating that file is an image file.

Constant Value: 1 (0x00000001)

MEDIA_TYPE_NONE

Added in API level 11
public static final int MEDIA_TYPE_NONE

Constant for the MEDIA_TYPE column indicating that file is not an audio, image, video or playlist file.

Constant Value: 0 (0x00000000)

MEDIA_TYPE_PLAYLIST

Added in API level 11
public static final int MEDIA_TYPE_PLAYLIST

Constant for the MEDIA_TYPE column indicating that file is a playlist file.

Constant Value: 4 (0x00000004)

MEDIA_TYPE_VIDEO

Added in API level 11
public static final int MEDIA_TYPE_VIDEO

Constant for the MEDIA_TYPE column indicating that file is a video file.

Constant Value: 3 (0x00000003)

MIME_TYPE

Added in API level 11
public static final String MIME_TYPE

The MIME type of the media item.

This is typically defined based on the file extension of the media item. However, it may be the value of the format attribute defined by the Dublin Core Media Initiative standard, extracted from any XMP metadata contained within this media item.

Note: the format attribute may be ignored if the top-level MIME type disagrees with the file extension. For example, it's reasonable for an image/jpeg file to declare a format of image/vnd.google.panorama360+jpg, but declaring a format of audio/ogg would be ignored.

This is a read-only column that is automatically computed.

Constant Value: "mime_type"

PARENT

Added in API level 11
public static final String PARENT

The index of the parent directory of the file

Constant Value: "parent"

TITLE

Added in API level 11
public static final String TITLE

The title of the media item.

Constant Value: "title"