Skip to content

Most visited

Recently visited

navigation

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.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

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.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)