Stay organized with collections
Save and categorize content based on your preferences.
Files
class 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 |
abstract |
File metadata columns.
|
Public methods |
static Uri! |
Get the content:// style URI for the files table on the given volume.
|
static Uri! |
Get the content:// style URI for a single row in the files table on the given volume.
|
Public constructors
Public methods
getContentUri
static fun getContentUri(volumeName: String!): Uri!
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 |
Return |
Uri! |
the URI to the files table on the given volume |
getContentUri
static fun getContentUri(
volumeName: String!,
rowId: Long
): Uri!
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 |
Return |
Uri! |
the URI to the files table on the given volume |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-04 UTC."],[],[]]