首页 > 解决方案 > 如何从 Android 应用加入 Zoom 会议

问题描述

我需要实现一个 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 应用程序安装在那里。能否请你帮忙?

标签: androidandroid-intent

解决方案


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

在 < /application> 之后添加到 AndroidManifest.xml 中:

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

推荐阅读