Most visited

Recently visited

Added in API level 1

MediaStore.MediaColumns

public static interface MediaStore.MediaColumns
implements BaseColumns

android.provider.MediaStore.MediaColumns
Known Indirect Subclasses


Common fields for most MediaProvider tables

Summary

Constants

String DATA

Path to the file on disk.

String DATE_ADDED

The time the file was added to the media provider Units are seconds since 1970.

String DATE_MODIFIED

The time the file was last modified Units are seconds since 1970.

String DISPLAY_NAME

The display name of the file

Type: TEXT

String HEIGHT

The height of the image/video in pixels.

String MIME_TYPE

The MIME type of the file

Type: TEXT

String SIZE

The size of the file in bytes

Type: INTEGER (long)

String TITLE

The title of the content

Type: TEXT

String WIDTH

The width of the image/video in pixels.

Inherited constants

From interface android.provider.BaseColumns

Constants

DATA

Added in API level 1
String DATA

Path to the file on disk.

Note that apps may not have filesystem permissions to directly access this path. Instead of trying to open this path directly, apps should use openFileDescriptor(Uri, String) to gain access.

Type: TEXT

Constant Value: "_data"

DATE_ADDED

Added in API level 1
String DATE_ADDED

The time the file was added to the media provider Units are seconds since 1970.

Type: INTEGER (long)

Constant Value: "date_added"

DATE_MODIFIED

Added in API level 1
String DATE_MODIFIED

The time the file was last modified Units are seconds since 1970. NOTE: This is for internal use by the media scanner. Do not modify this field.

Type: INTEGER (long)

Constant Value: "date_modified"

DISPLAY_NAME

Added in API level 1
String DISPLAY_NAME

The display name of the file

Type: TEXT

Constant Value: "_display_name"

HEIGHT

Added in API level 16
String HEIGHT

The height of the image/video in pixels.

Constant Value: "height"

MIME_TYPE

Added in API level 1
String MIME_TYPE

The MIME type of the file

Type: TEXT

Constant Value: "mime_type"

SIZE

Added in API level 1
String SIZE

The size of the file in bytes

Type: INTEGER (long)

Constant Value: "_size"

TITLE

Added in API level 1
String TITLE

The title of the content

Type: TEXT

Constant Value: "title"

WIDTH

Added in API level 16
String WIDTH

The width of the image/video in pixels.

Constant Value: "width"

Hooray!