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, document, playlist or subtitle) of the file, or 0 for not a media file. |
int |
MEDIA_TYPE_AUDIO
Constant for the |
int |
MEDIA_TYPE_DOCUMENT
Constant for the |
int |
MEDIA_TYPE_IMAGE
Constant for the |
int |
MEDIA_TYPE_NONE
Constant for the |
int |
MEDIA_TYPE_PLAYLIST
This constant was deprecated in API level 31. Android playlists are now deprecated. We will keep the current functionality for compatibility reasons, but we will no longer take feature request. We do not advise adding new usages of Android Playlists. M3U files can be used as an alternative. |
int |
MEDIA_TYPE_SUBTITLE
Constant for the |
int |
MEDIA_TYPE_VIDEO
Constant for the |
String |
MIME_TYPE
The MIME type of the media item. |
String |
PARENT
The index of the parent directory of the file. |
String |
SPECIAL_FORMAT
Special format for a file. |
int |
SPECIAL_FORMAT_ANIMATED_WEBP
Constant for the |
int |
SPECIAL_FORMAT_GIF
Constant for the |
int |
SPECIAL_FORMAT_MOTION_PHOTO
Constant for the |
int |
SPECIAL_FORMAT_NONE
Constant for the |
Inherited constants |
|---|
Constants
MEDIA_TYPE
public static final String MEDIA_TYPE
The media type (audio, video, image, document, playlist or subtitle)
of the file, or 0 for not a media file.
This constant represents a column name that can be used with a ContentProvider through a ContentValues or Cursor object. The values stored in this column are Cursor#FIELD_TYPE_INTEGER .
Constant Value: "media_type"
MEDIA_TYPE_AUDIO
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_DOCUMENT
public static final int MEDIA_TYPE_DOCUMENT
Constant for the MEDIA_TYPE column indicating that file is a document file.
Constant Value: 6 (0x00000006)
MEDIA_TYPE_IMAGE
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
public static final int MEDIA_TYPE_NONE
Constant for the MEDIA_TYPE column indicating that file
is not an audio, image, video, document, playlist, or subtitles file.
Constant Value: 0 (0x00000000)
MEDIA_TYPE_PLAYLIST
public static final int MEDIA_TYPE_PLAYLIST
This constant was deprecated
in API level 31.
Android playlists are now deprecated. We will keep the current
functionality for compatibility reasons, but we will no longer take
feature request. We do not advise adding new usages of Android Playlists.
M3U files can be used as an alternative.
Constant for the MEDIA_TYPE column indicating that file
is a playlist file.
Constant Value: 4 (0x00000004)
MEDIA_TYPE_SUBTITLE
public static final int MEDIA_TYPE_SUBTITLE
Constant for the MEDIA_TYPE column indicating that file
is a subtitles or lyrics file.
Constant Value: 5 (0x00000005)
MEDIA_TYPE_VIDEO
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
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.
This constant represents a column name that can be used with a ContentProvider through a ContentValues or Cursor object. The values stored in this column are Cursor#FIELD_TYPE_STRING .
Constant Value: "mime_type"
PARENT
public static final String PARENT
The index of the parent directory of the file.
This constant represents a column name that can be used with a ContentProvider through a ContentValues or Cursor object. The values stored in this column are Cursor#FIELD_TYPE_INTEGER , and are read-only and cannot be mutated.
Constant Value: "parent"
SPECIAL_FORMAT
public static final String SPECIAL_FORMAT
Special format for a file.
Applications require special format tagging for media files.
This is essential as Images collection can include
images of various formats like Motion Photos, GIFs etc, which
is not identifiable by MIME_TYPE.
This constant represents a column name that can be used with a ContentProvider through a ContentValues or Cursor object. The values stored in this column are Cursor#FIELD_TYPE_INTEGER .
Constant Value: "_special_format"
SPECIAL_FORMAT_ANIMATED_WEBP
public static final int SPECIAL_FORMAT_ANIMATED_WEBP
Constant for the SPECIAL_FORMAT column indicating
that the file is an Animated Webp.
Constant Value: 3 (0x00000003)
SPECIAL_FORMAT_GIF
public static final int SPECIAL_FORMAT_GIF
Constant for the SPECIAL_FORMAT column indicating
that the file is a GIF file.
Constant Value: 1 (0x00000001)
SPECIAL_FORMAT_MOTION_PHOTO
public static final int SPECIAL_FORMAT_MOTION_PHOTO
Constant for the SPECIAL_FORMAT column indicating
that the file is a Motion Photo.
Constant Value: 2 (0x00000002)
SPECIAL_FORMAT_NONE
public static final int SPECIAL_FORMAT_NONE
Constant for the SPECIAL_FORMAT column indicating
that the file doesn't have any special format associated with it.
Constant Value: 0 (0x00000000)