
最新遇到一个需要从快应用跳转到AndroID App的需求,以下记录下实现的方式。
在需要跳转的目标安卓App的activity中添加对外的schema,示例代码如下:<activity androID:label="@7F070043" androID:name="com.huawei.phoneservice.HelpCenteractivity" androID:exported="true" androID:excludeFromrecents="true" androID:launchMode="2" androID:configChanges="0x40002D84"> <intent-filter> <action androID:name="androID.intent.action.VIEW"></action> <category androID:name="androID.intent.category.DEFAulT"> </category> <category androID:name="androID.intent.category.broWSABLE"></category> <data androID:scheme="hwphoneservice" androID:host="externalapp"></data> </intent-filter></activity>在快应用中通过system.router.push接口调用跳转,即router.push接口传入上步配置的schema:router.push({uri:"hwphoneservice://externalapp/service"})快应用push接口使用方法详见api文档:
https://developer.huawei.com/consumer/cn/doc/development/quickApp-References/quickapp-api-router
原文链接:https://developer.huawei.com/consumer/cn/forum/topic/0204411124509160358?fid=18
原作者:Mayism
总结以上是内存溢出为你收集整理的教你如何在快应用中跳转到Android的app全部内容,希望文章能够帮你解决教你如何在快应用中跳转到Android的app所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)