
从developer document of Instant Apps
Installed apps can make themselves available to interact with instant through explicit intents.
后来提到即时应用程序不能
discover the List of installed apps on the device, unless the installed apps have made themselves discoverable to instant apps.
但是我无法找到有关如何公开已安装的应用程序的组件或应用程序的任何部分的详细信息,以便即时应用程序可见(并且可访问).那有什么限制吗? (支持的组件类型等)
解决方法:
最后,我想出了语法:
对于Android O+,您可以为组件指定androID:visibletoInstantApps =“true”.
对于较低版本的AndroID,请将此元数据添加到< application> (不适用于组件):
< Meta-data androID:name =“instantapps.clIEnts.allowed”androID:value =“true”/>
更多信息可以在这里找到3.15. Instant Apps
总结以上是内存溢出为你收集整理的android – 如何将已安装应用程序中的组件公开给即时应用程序?全部内容,希望文章能够帮你解决android – 如何将已安装应用程序中的组件公开给即时应用程序?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)