【发布时间】: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) {}是做什么的? -
我已经编辑了帖子。他们得到“错误”吐司