to top
Android APIs
public static final class

MediaStore.Files

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

Class Overview

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
final static Uri getContentUri(String volumeName, long rowId)
Get the content:// style URI for a single row in the files table on the given volume.
static Uri getContentUri(String volumeName)
Get the content:// style URI for the files table on the given volume.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MediaStore.Files ()

Since: API Level 11

Public Methods

public static final Uri getContentUri (String volumeName, long rowId)

Since: API Level 11

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

Parameters
volumeName the name of the volume to get the URI for
rowId the file to get the URI for
Returns
  • the URI to the files table on the given volume

public static Uri getContentUri (String volumeName)

Since: API Level 11

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

Parameters
volumeName the name of the volume to get the URI for
Returns
  • the URI to the files table on the given volume