MediaStore.MediaColumns

public static interface MediaStore.MediaColumns
implements BaseColumns

android.provider.MediaStore.MediaColumns


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

Constants

DATA

added in API level 1
public static final 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 ContentResolver.openFileDescriptor(Uri, String) to gain access.

Type: TEXT

Constant Value: "_data"

DATE_ADDED

added in API level 1
public static final 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
public static final 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
public static final String DISPLAY_NAME

The display name of the file

Type: TEXT

Constant Value: "_display_name"

HEIGHT

added in API level 16
public static final String HEIGHT

The height of the image/video in pixels.

Constant Value: "height"

MIME_TYPE

added in API level 1
public static final String MIME_TYPE

The MIME type of the file

Type: TEXT

Constant Value: "mime_type"

SIZE

added in API level 1
public static final String SIZE

The size of the file in bytes

Type: INTEGER (long)

Constant Value: "_size"

TITLE

added in API level 1
public static final String TITLE

The title of the content

Type: TEXT

Constant Value: "title"

WIDTH

added in API level 16
public static final String WIDTH

The width of the image/video in pixels.

Constant Value: "width"