Android Appinventor-Webview未打开应用程序链接

Android Appinventor-Webview未打开应用程序链接,android,app-inventor,Android,App Inventor,我正在尝试在App inventor WebView中打开应用商店中的应用链接。 html链接打开playstore网站的移动版本,但这不是我需要的。我需要在Google playstore应用程序中打开应用程序的链接 此html页面嵌入在WebView中。 然后是whatsapp应用程序的示例 <a href="https://play.google.com/store/apps/details?id=com.whatsapp">Buy it now</a> 我也

我正在尝试在App inventor WebView中打开应用商店中的应用链接。 html链接打开playstore网站的移动版本,但这不是我需要的。我需要在Google playstore应用程序中打开应用程序的链接

此html页面嵌入在WebView中。 然后是whatsapp应用程序的示例

<a href="https://play.google.com/store/apps/details?id=com.whatsapp">Buy it now</a>


我也尝试了
market://
,但它不起作用。

如果你想从Android应用程序链接到你的产品,请创建一个打开URL的意图。在配置此意图时,将“com.android.vending”传递到intent.setPackage()中,以便用户在Google Play Store应用程序中看到应用程序的详细信息,而不是选择器

以下示例指示用户在Google Play中查看包含包名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.vending

使用webviewer组件的WebViewString属性将URL传递回App Inventor。然后使用Activity Starter在Google Play中打开应用程序



这不是AppInventor,而是我不使用的本机代码。我想你没有检查我答案的最后一部分。我在webview中只加载了html和js。你不能用这种语言调用操作。谢谢你,通过传回字符串,它可以完美地工作。