热门角色不仅是灵感来源,更是你的效率助手。通过精挑细选的角色提示词,你可以快速生成高质量内容、提升创作灵感,并找到最契合你需求的解决方案。让创作更轻松,让价值更直接!
我们根据不同用户需求,持续更新角色库,让你总能找到合适的灵感入口。
本提示词专为Android应用开发场景设计,能够根据活动的具体功能需求,智能生成符合Android规范的意图过滤器配置。它适用于深度链接、隐式意图调用、跨应用交互等多种业务场景,提供基于官方开发指南的技术实现方案,确保配置的准确性和最佳实践性。通过结构化分析活动用途,输出包含action、category、data等元素的完整过滤器定义,帮助开发者快速实现活动间的有效通信与系统集成。
<!-- 1) HTTPS Android App Links(含域名校验) -->
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- https://shop.example.com/product/<id> -->
<data
android:scheme="https"
android:host="shop.example.com"
android:pathPrefix="/product/" />
<!-- https://shop.example.com/p/<id> -->
<data
android:scheme="https"
android:host="shop.example.com"
android:pathPrefix="/p/" />
</intent-filter>
<!-- 2) 自定义 Scheme 深度链接:demoapp://product/<id> -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- demoapp://product/<id>
其中 host=product,路径至少包含一个 segment(<id>) -->
<data
android:scheme="demoapp"
android:host="product"
android:pathPattern="/.*" />
</intent-filter>
功能描述:
元素解析:
使用方式(集成到 AndroidManifest.xml):
注意事项:
匹配优先级说明:
系统版本兼容性:
安全配置建议:
<!-- Handle single share: image or plain text -->
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<!-- Accept plain text shares -->
<data android:mimeType="text/plain" />
<!-- Accept single image shares from MediaStore/FileProvider -->
<data android:mimeType="image/*" />
</intent-filter>
<!-- Handle multiple images share -->
<intent-filter>
<action android:name="android.intent.action.SEND_MULTIPLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
功能描述:
元素解析:
使用方式:
注意事项:
匹配优先级说明:
系统版本兼容性:
安全配置建议:
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data
android:scheme="paydemo"
android:host="pay"
android:path="/result" />
</intent-filter>
기능 설명:
요소 해설:
사용 방식:
<activity
android:name=".ui.payment.PayResultActivity"
android:exported="true"
android:launchMode="singleTop">
<!-- 결제 결과 콜백 딥링크 -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data
android:scheme="paydemo"
android:host="pay"
android:path="/result" />
</intent-filter>
</activity>
주의 사항:
将“活动要做什么”转化为“可直接上线的意图过滤器配置与说明书”。用户只需提供页面/功能用途,即可自动生成符合规范的配置与逐条解读,覆盖深度链接、外部唤起、跨应用分享与通知跳转等核心场景;内置安全与兼容检查,帮助团队快速通过联调与审核,显著降低配置错误、跳转失败与流量损耗,促进业务转化。
输入活动用途即可获得可用配置,覆盖深度链接、分享、通知跳转等常见需求。快速接入跨应用调用,减少清单改动反复,降低缺陷与回退风险。
用它沉淀路由模板与命名规范,统一团队产出。提前发现冲突与风险项,给出更稳健的替代方案,制定多版本与多机型的兼容策略。
依据生成的调用示例和检查清单,设计全路径测试用例。快速复现误唤起与匹配异常,精确定位问题活动与配置来源,提升回归效率。
将模板生成的提示词复制粘贴到您常用的 Chat 应用(如 ChatGPT、Claude 等),即可直接对话使用,无需额外开发。适合个人快速体验和轻量使用场景。
把提示词模板转化为 API,您的程序可任意修改模板参数,通过接口直接调用,轻松实现自动化与批量处理。适合开发者集成与业务系统嵌入。
在 MCP client 中配置对应的 server 地址,让您的 AI 应用自动调用提示词模板。适合高级用户和团队协作,让提示词在不同 AI 工具间无缝衔接。
半价获取高级提示词-优惠即将到期