Most visited

Recently visited

Added in API level 11

MediaStore.Files

public static final class MediaStore.Files
extends Object

java.lang.Object
    android.provider.MediaStore.Files


媒体提供商表格,其中包含媒体存储器中所有文件的索引,包括非媒体文件。 这应该用于使用非媒体文件类型(文本,HTML,PDF等)的应用程序以及需要在单个查询中处理多种媒体文件类型的应用程序。

摘要(Summary)

Nested classes

interface MediaStore.Files.FileColumns

所有媒体文件的主表字段。

Public constructors

MediaStore.Files()

公共方法(Public methods)

static Uri getContentUri(String volumeName)

获取给定卷上文件表的content:// style URI。

static final Uri getContentUri(String volumeName, long rowId)

获取给定卷上files表中单个行的content:// style URI。

继承方法(Inherited methods)

From class java.lang.Object

Public constructors

MediaStore.Files

Added in API level 11
MediaStore.Files ()

公共方法(Public methods)

getContentUri

Added in API level 11
Uri getContentUri (String volumeName)

获取给定卷上文件表的content:// style URI。

参数(Parameters)
volumeName String: the name of the volume to get the URI for
返回(Returns)
Uri the URI to the files table on the given volume

getContentUri

Added in API level 11
Uri getContentUri (String volumeName, 
                long rowId)

获取给定卷上files表中单个行的content:// style URI。

参数(Parameters)
volumeName String: the name of the volume to get the URI for
rowId long: the file to get the URI for
返回(Returns)
Uri the URI to the files table on the given volume

Hooray!