如何在Android应用程序中启动Amazon Shopping应用程序? [英] How to launch Amazon Shopping app in Android app?

查看:478
本文介绍了如何在Android应用程序中启动Amazon Shopping应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够从我的android应用程序中启动 Amazon Shopping 应用程序。这怎么可能?意图中需要输入哪些参数?这是指向Amazon Shopping应用程序的链接: https://play.google.com/store/apps/details?id=com.amazon.mShop.android.shopping&hl=zh_CN

I'd like to be able to launch the Amazon Shopping app from my android application. How is this possible? What parameters would need to go into the Intent? Here is a link to the Amazon Shopping app: https://play.google.com/store/apps/details?id=com.amazon.mShop.android.shopping&hl=en

此外,如何传递深层链接参数以使其到达特定的产品页面?谢谢!

In addition, how would it be possible to pass a deep-link parameter so that it lands on a specific product page? Thank you!

推荐答案


我希望能够从我的商店启动Amazon Shopping应用程序android
应用程序。这怎么可能?将
放入Intent需要什么参数?

I'd like to be able to launch the Amazon Shopping app from my android application. How is this possible? What parameters would need to go into the Intent?

您可以使用 PackageManager#getLaunchIntentForPackage

startActivity(getPackageManager().getLaunchIntentForPackage("com.amazon.mShop.android.shopping"));




此外,如何通过深层链接参数,以便
可以到达特定产品页面?

In addition, how would it be possible to pass a deep-link parameter so that it lands on a specific product page?

这取决于Amazon应用程序是否实现了深层链接并公开了意图过滤器到外部应用程序。我认为这是不可能的,但也许您可以问一下亚马逊。

It depends on whether Amazon app implements deep link and exposes intent-filter to external app. I assume it's not possible, but maybe you can ask Amazon.

这篇关于如何在Android应用程序中启动Amazon Shopping应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆