Stay organized with collections
Save and categorize content based on your preferences.
OpenableColumns
public
interface
OpenableColumns
android.provider.OpenableColumns
|
Known indirect subclasses
|
These are standard columns for openable URIs. Providers that serve openable
URIs must support at least these columns when queried.
To find the content type of a URI, use
ContentResolver.getType(android.net.Uri)
.
Summary
Constants
DISPLAY_NAME
public static final String DISPLAY_NAME
The human-friendly name of file. If this is not provided then the name should default to the
the last segment of the file's URI.
Constant Value:
"_display_name"
SIZE
public static final String SIZE
The number of bytes in the file identified by the openable URI. Null if unknown.
Constant Value:
"_size"
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 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# OpenableColumns\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Constants](#constants) \n\nOpenableColumns\n===============\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/provider/OpenableColumns \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\n\n\ninterface\nOpenableColumns\n`\n\n\n`\n\n\n`\n\n|----------------------------------|\n| android.provider.OpenableColumns |\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [VoicemailContract.Voicemails](/reference/android/provider/VoicemailContract.Voicemails) |------------------------------------------------------------------------------------------|------------------------------------------------------------------------------| | [VoicemailContract.Voicemails](/reference/android/provider/VoicemailContract.Voicemails) | Defines fields exposed through the /voicemail path of this content provider. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nThese are standard columns for openable URIs. Providers that serve openable\nURIs *must* support at least these columns when queried.\n\n\nTo find the content type of a URI, use\n[ContentResolver.getType(android.net.Uri)](/reference/android/content/ContentResolver#getType(android.net.Uri)). \n**See also:**\n\n- [Intent.CATEGORY_OPENABLE](/reference/android/content/Intent#CATEGORY_OPENABLE)\n\nSummary\n-------\n\n| ### Constants ||\n|---------------------------------------|--------------------------------------------------------------------------------------------------------------------------|\n| [String](/reference/java/lang/String) | [DISPLAY_NAME](/reference/android/provider/OpenableColumns#DISPLAY_NAME) The human-friendly name of file. |\n| [String](/reference/java/lang/String) | [SIZE](/reference/android/provider/OpenableColumns#SIZE) The number of bytes in the file identified by the openable URI. |\n\nConstants\n---------\n\n### DISPLAY_NAME\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String DISPLAY_NAME\n```\n\nThe human-friendly name of file. If this is not provided then the name should default to the\nthe last segment of the file's URI.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"_display_name\"\n\n\n### SIZE\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String SIZE\n```\n\nThe number of bytes in the file identified by the openable URI. Null if unknown.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"_size\""]]