云服务器内容精选

  • 代码示例 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Uri.Builder builder = new Uri.Builder() .scheme("cloudlink") .authority("welinksoftclient") .path("h5page") .appendQueryParameter("page","joinConfByLink") .appendQueryParameter("server_url",serverAddress) .appendQueryParameter("port",portString) .appendQueryParameter("conf_id",confId) .appendQueryParameter("enter_code",enterCode) .appendQueryParameter("name",name) .appendQueryParameter("open_mic",String.valueOf(openMic)) .appendQueryParameter("open_camera",String.valueOf(openCamera)); Intent intent = new Intent(); intent.setData(Uri.parse(url)); startActivity(intent);
  • 代码示例 private void doNonceLinkApp(String nonce) { String startUrl = "cloudlink://welinksoftclient/h5page?page=launch&nonce=" + nonce; if (DemoUtil.packageInstalled(context, "com.huawei.CloudLink")) { Intent intent = new Intent(); intent.setData(Uri.parse(url)); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(intent); } else { showToast("应用未安装"); } }