【问题标题】:Android lauch skype for business and make a call with specified skypeIDAndroid 启动 Skype for business 并使用指定的 Skype ID 拨打电话
【发布时间】:2016-02-09 12:18:58
【问题描述】:

单击带有 skypeID 的 textview 时,应用程序应该启动 skype for business(lync) 并使用指定的 skypeID 开始通话,我能够启动应用程序但不能自动启动通话选项?我可以在 Skype 中做到这一点,但不能在 Skype for business(lync) 中做到这一点,你能建议我怎么做吗? TIA

【问题讨论】:

标签: android android-intent skype skype-for-business


【解决方案1】:
public static void skype(String number, Context ctx) {
    try {
        //Intent sky = new Intent("android.intent.action.CALL_PRIVILEGED");
        //the above line tries to create an intent for which the skype app doesn't supply public api

            Intent sky = new Intent("android.intent.action.VIEW");
        sky.setData(Uri.parse("skype:" + number));
        Log.d("UTILS", "tel:" + number);
        ctx.startActivity(sky);
    } catch (ActivityNotFoundException e) {
        Log.e("SKYPE CALL", "Skype failed", e);
    }

}

我没有尝试过,请尝试检查。欲了解更多信息,请访问此 SO link

【讨论】:

  • 嗨,这适用于Skype,但不适用于Skype for business(lync)。
  • 哦,我会检​​查一下,如果我得到什么更新:)
猜你喜欢
  • 2020-07-29
  • 2017-11-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多