Skip to content

Most visited

Recently visited

navigation
Added in API level 11

MediaStore.Files

public static final class MediaStore.Files
extends Object

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


Media provider table containing an index of all files in the media storage, including non-media files. This should be used by applications that work with non-media file types (text, HTML, PDF, etc) as well as applications that need to work with multiple media file types in a single query.

Summary

Nested classes

interface MediaStore.Files.FileColumns

Fields for master table for all media files. 

Public constructors

MediaStore.Files()

Public methods

static Uri getContentUri(String volumeName)

Get the content:// style URI for the files table on the given volume.

static final Uri getContentUri(String volumeName, long rowId)

Get the content:// style URI for a single row in the files table on the given volume.

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)

Get the content:// style URI for the files table on the given volume.

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)

Get the content:// style URI for a single row in the files table on the given volume.

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
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.