android - 如何从 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 应用程序安装在那里。能否请你帮忙?
解决方案
我在这里找到了解决方案: https ://stackoverflow.com/a/64204646/2240880
在 < /application> 之后添加到 AndroidManifest.xml 中:
<queries>
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="https" />
</intent>
</queries>
推荐阅读
- python-3.x - 在 Python3 中生成所有给定长度的二进制掩码的最佳方法 [最佳时间复杂度] 是什么?
- javascript - javascript if 或语句
- python - Python while循环,从数组中打印一项而不连续打印两次
- javascript - Sequelize 创建/导入动态生成的模型
- spring - 四足蜘蛛实验
- c - 想通过使用realloc增加动态数组但不成功
- .net - 反序列化时不创建具有 NonSerialized 属性的对象
- python - 使用 sqlalchemy 从表列中选择不包含字符 af 的唯一值
- visual-studio - 如何让 VS 2019 在 System.InvalidCastException 上中断?
- html - 如何在居中对齐容器内的左对齐 div 中居中对齐内容(例如,图像)?