我正尝试在中打开应用程序商店的一个应用链接。html链接打开了playstore网站的移动版本,但这不是我所需要的,我需要在Google应用程序中打开这个应用程序。
这个html页面嵌入在WebView中。然后是whatsapp的例子
<a href="https://play.google.com/store/apps/details?id=com.whatsapp">Buy it now</a>我也尝试过market://,但它不起作用。
发布于 2019-04-24 15:09:18
使用webviewer组件的WebViewString属性将URL传回App。然后使用Activity打开Google中的应用程序。
发布于 2019-04-22 19:02:54
如果您想从Android应用程序链接到您的产品,请创建一个打开URL的意图。在配置这个意图时,将"com.android.vending“传递到Intent.setPackage()中,这样用户就可以在Google应用程序中查看应用程序的详细信息,而不是选择器。
下面的示例指导用户查看Google中包含包名com.example.android的应用程序:
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(
"https://play.google.com/store/apps/details?id=com.example.android"));
intent.setPackage("com.android.vending");
startActivity(intent);这是为本地的android删除。你也可以这样做:
Action:android.intent.action.VIEW
DataUri:https://play.google.com/store/apps/details?id=com.example.android
ActivityPackage:com.android.vendinghttps://stackoverflow.com/questions/55799513
复制相似问题