Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static interface

MediaStore.MediaColumns

implements BaseColumns
android.provider.MediaStore.MediaColumns
Known Indirect Subclasses

Class Overview

Common fields for most MediaProvider tables

Summary

Constants
String DATA The data stream for the file

Type: DATA STREAM

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.
[Expand]
Inherited Constants
From interface android.provider.BaseColumns

Constants

public static final String DATA

Added in API level 1

The data stream for the file

Type: DATA STREAM

Constant Value: "_data"

public static final String DATE_ADDED

Added in API level 1

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

Type: INTEGER (long)

Constant Value: "date_added"

public static final String DATE_MODIFIED

Added in API level 1

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"

public static final String DISPLAY_NAME

Added in API level 1

The display name of the file

Type: TEXT

Constant Value: "_display_name"

public static final String HEIGHT

The height of the image/video in pixels.

Constant Value: "height"

public static final String MIME_TYPE

Added in API level 1

The MIME type of the file

Type: TEXT

Constant Value: "mime_type"

public static final String SIZE

Added in API level 1

The size of the file in bytes

Type: INTEGER (long)

Constant Value: "_size"

public static final String TITLE

Added in API level 1

The title of the content

Type: TEXT

Constant Value: "title"

public static final String WIDTH

The width of the image/video in pixels.

Constant Value: "width"