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
|
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"