【问题标题】:How to join to a Zoom conference from Android app如何从 Android 应用加入 Zoom 会议
【发布时间】:2021-12-17 15:35:12
【问题描述】:

我需要实现一个 Android 应用程序才能快速加入 Zoom 会议。 我写了以下代码:

protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Intent intent = new Intent(Intent.ACTION_VIEW, 
        Uri.parse("zoomus://join?action=join&confno=99999999999&pwd=ugnuiGOEIfgewigfweifcvewiofcewifcew"));
    if (intent.resolveActivity(getPackageManager()) != null) {
        try {
            startActivity(intent);
        } catch(Exception e) {                
        }
    } else {
         Toast.makeText(this, "Error", Toast.LENGTH_SHORT).show();            
    }
    finish();
}

此代码在我的设备和其他一些设备上运行良好。但是许多用户报告说它不起作用(“错误”吐司)。他们单击应用程序图标,没有任何反应。 Zoom 应用程序安装在那里。 你能帮忙吗?

【问题讨论】:

  • 您还必须注意设备中未安装Zoom 应用程序的情况。
  • 就我而言,无需检查是否安装了 Zoom。我们所有的用户都安装了它。
  • 那么在这种情况下,请提供更多的错误细节。
  • catch(Exception e) {} 是做什么的?
  • 我已经编辑了帖子。他们得到“错误”吐司

标签: android android-intent


【解决方案1】:

我在这里找到了解决方案: https://stackoverflow.com/a/64204646/2240880

在之后添加到AndroidManifest.xml中:

<queries>
    <intent>
        <action android:name="android.intent.action.VIEW" />
        <data android:scheme="https" />
    </intent>
</queries>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-02-24
    • 2022-07-01
    • 2022-09-30
    • 2023-03-18
    • 2020-11-04
    • 2021-01-06
    • 1970-01-01
    相关资源
    最近更新 更多