【问题标题】:Skype Starts Dialing and Hangs Up After 2 Seconds - AndroidSkype 开始拨号并在 2 秒后挂断 - Android
【发布时间】:2012-07-18 13:03:47
【问题描述】:

我在两台Android 设备上安装了Skype (2.8.0.920)。第一个设备带有 Android 2.2,第二个带有 4.04。

当我通过执行以下代码发起呼叫时...

Intent skype_intent = new Intent("android.intent.action.CALL_PRIVILEGED"); 
skype_intent.setClassName("com.skype.raider", "com.skype.raider.Main");   
skype_intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);                  
skype_intent.setData(Uri.parse("tel:PassportCard"));                 
act.startActivity(skype_intent);

...Skype 开始拨号并且在 2 秒后挂断。

但是,如果我用 previous 替换当前 (2.8.0.920) Skype 版本,代码可以正常工作。

这是为什么?有什么帮助吗?

【问题讨论】:

  • 可能是 Skype 本身的一些错误!
  • 你能告诉我你以前的版本是什么吗?

标签: java android android-intent skype


【解决方案1】:

这是我找到的解决方案;

In Java file:
Intent iskype = new Intent("android.intent.action.VIEW"); 
iskype.setData(Uri.parse("skype:PassportCard")); 
act.startActivity(iskype);

In AndroidManifast.xml
<intent-filter> 
      <category android:name="android.intent.category.DEFAULT" />
      <action android:name="android.intent.action.VIEW" />                     
      <data android:scheme="skype" /> 
</intent-filter>            

【讨论】:

    猜你喜欢
    • 2013-04-17
    • 1970-01-01
    • 1970-01-01
    • 2016-04-19
    • 1970-01-01
    • 2010-10-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多