免安装应用通用 intent
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
警告:Google Play 免安装体验将不再可用。自 2025 年 12 月起,将无法再通过 Google Play 发布免安装应用,并且所有 Google Play 服务免安装体验 API 将停止运行。Play 将不再通过任何机制向用户提供免安装应用。
自推出 Google Play Instant 以来,我们一直在不断投资改进生态系统,因此决定根据开发者的反馈做出此项变更。
若要继续优化以促进用户增长,我们建议开发者使用深层链接将用户引导至其常规应用或游戏,并在适当的时候将用户重定向到特定历程或功能。
免安装应用依赖于选择器以及系统定义的其他组件来执行任务。为确保免安装应用具备一组基本功能,Android CDD 指定了一组核心应用,要求这些核心应用必须存在于兼容的设备上,并通过 intent 处理程序将其功能提供给免安装应用。免安装应用可以通过这些 intent 安全地请求功能并确保 intent 得到正确处理。
下表列出了兼容的 Android 设备上免安装应用的通用 intent,以及根据支持免安装应用的设备上的 CTS 要求,这些 intent 是在哪个 API 级别引入的。如需详细了解 intent 或如何发送 intent,请参阅这篇文档。
- 仅适用于支持 FEATURE_CAMERA 或 FEATURE_CAMERA_ANY 的设备
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Instant App Common Intents\n\n**Warning:** Google Play Instant will no longer be available. Starting December 2025,\nInstant Apps cannot be published through Google Play, and all\n[Google Play services Instant APIs](https://developers.google.com/android/reference/com/google/android/gms/instantapps/package-summary)\nwill no longer work. Users will no longer be served Instant Apps by Play using any\nmechanism.\n\nWe're making this change based on developer feedback and our continuous investments\nto improve the ecosystem since the introduction of Google Play Instant.\n\nTo continue optimizing for user growth, we encourage developers to refer users to\ntheir regular app or game, using [deeplinks](https://support.google.com/googleplay/android-developer/answer/12463044)\nto redirect them to specific journeys or features when relevant.\n\nInstant apps rely on pickers and other system-defined components to do work.\nTo ensure a basic set of functionality for Instant Apps,\nthe Android CDD specifies a set of core apps that must be present on\ncompatible devices and provide their functionality to Instant Apps\nthrough Intent handlers. Instant apps can safely request the functionality\nthrough these Intents and be assured that the Intent is handled properly.\n\nThe table below lists the common Intents for Instant Apps on\ncompatible Android devices, along with the API level in which they\nwere introduced as CTS requirements on devices that support Instant Apps.\nTo learn more about Intents or how to send them, see the\n[documentation](/guide/components/intents-filters).\n\n| Intent action | Intent category | Intent MIME type | API introduced (for Instant Apps) |\n|---------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------|------------------------------------------|-----------------------------------|\n| [android.intent.action.CHOOSER](/reference/android/content/Intent#CHOOSER) | none | none | Android 8 (API 26) |\n| [android.intent.action.PICK](/reference/android/content/Intent#ACTION_PICK) | none | vnd.android.cursor.dir/contact | Android 8 (API 26) |\n| [android.intent.action.PICK](/reference/android/content/Intent#ACTION_PICK) | none | vnd.android.cursor.dir/phone_v2 | Android 8 (API 26) |\n| [android.intent.action.PICK](/reference/android/content/Intent#ACTION_PICK) | none | vnd.android.cursor.dir/email_v2 | Android 8 (API 26) |\n| [android.intent.action.PICK](/reference/android/content/Intent#ACTION_PICK) | none | vnd.android.cursor.dir/postal-address_v2 | Android 8 (API 26) |\n| [android.intent.action.OPEN_DOCUMENT](/reference/android/content/Intent#ACTION_OPEN_DOCUMENT) | [CATEGORY_OPENABLE](/reference/android/content/Intent#CATEGORY_OPENABLE) | \\*/\\* | Android 8 (API 26) |\n| [android.intent.action.OPEN_DOCUMENT](/reference/android/content/Intent#ACTION_OPEN_DOCUMENT) | none | \\*/\\* | Android 8 (API 26) |\n| [android.intent.action.GET_CONTENT](/reference/android/content/Intent#ACTION_GET_CONTENT) | [CATEGORY_OPENABLE](/reference/android/content/Intent#CATEGORY_OPENABLE) | \\*/\\* | Android 8 (API 26) |\n| [android.intent.action.GET_CONTENT](/reference/android/content/Intent#ACTION_GET_CONTENT) | none | \\*/\\* | Android 8 (API 26) |\n| [android.intent.action.OPEN_DOCUMENT_TREE](/reference/android/content/Intent#ACTION_OPEN_DOCUMENT_TREE) | none | none | Android 8 (API 26) |\n| [android.intent.action.CREATE_DOCUMENT](/reference/android/content/Intent#ACTION_CREATE_DOCUMENT) | [CATEGORY_OPENABLE](/reference/android/content/Intent#CATEGORY_OPENABLE) | text/plain | Android 8 (API 26) |\n| [android.intent.action.CREATE_DOCUMENT](/reference/android/content/Intent#ACTION_CREATE_DOCUMENT) | none | text/plain | Android 8 (API 26) |\n| [android.media.action.IMAGE_CAPTURE](/reference/android/provider/MediaStore#ACTION_IMAGE_CAPTURE)^1^ | none | none | Android 8 (API 26) |\n| [android.media.action.VIDEO_CAPTURE](/reference/android/provider/MediaStore#ACTION_VIDEO_CAPTURE) ^1^ | none | none | Android 8 (API 26) |\n\n1. Available only on devices that support [FEATURE_CAMERA](/reference/android/content/pm/PackageManager#FEATURE_CAMERA) or [FEATURE_CAMERA_ANY](/reference/android/content/pm/PackageManager#FEATURE_CAMERA_ANY)"]]