【问题标题】:Zoom, Meet link not working in android webviewZoom,Meet 链接在 android webview 中不起作用
【发布时间】:2021-08-16 12:36:25
【问题描述】:

我正在使用默认 Web 视图来加载 URL。 不知何故,缩放和相遇链接无法使用错误消息=“UNKNOWN_SCHEME_URL”

缩放网址:

https://us02web.zoom.us/j/**ID**?pwd=wcpkf9693b95da4713f17d147fbfdf416ee1

见面网址:

meet.google.com/mto-qcwa-***

安卓代码:

  webView.loadUrl(url);

如何在外部网络浏览器中启用或打开它?

错误

 android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=zoomus://us02web.zoom.us/join?action=join&confno=....

【问题讨论】:

  • 启用 JavaScript?
  • 您也可以发布您的外部网络意图吗?
  • @JohnMelodyMelissa 是 webView.getSettings().setJavaScriptEnabled(true);
  • @SRBBans view.getContext().startActivity( new Intent(Intent.ACTION_VIEW, Uri.parse(url));

标签: android webview


【解决方案1】:

将此添加到您的网络视图设置中。

if (uri.getScheme().equals("zoomus")) {
   Intent intent = new Intent(Intent.ACTION_VIEW);
   intent.setData(uri);
   getContext().startActivity(intent);
   return true;
}

如果不是 HTTP 或 HTTPS,您必须明确指定意图,我猜您是这样做的,因为您收到此错误。 android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=zoomus://us02web.zoom.us/join?action=join&confno=....

这意味着您没有打开它的外部意图。 检查您是否已安装 Zoom 应用。

如果您安装了应用程序,则不会弹出此错误。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-08-05
    • 1970-01-01
    • 2021-12-24
    • 2013-12-13
    • 1970-01-01
    相关资源
    最近更新 更多