我在两个安卓设备上安装了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秒后挂断。
然而,如果我用以前的Skype版本替换当前的(2.8.0.920
),代码就可以正常工作。
为什么会这样?有什么帮助吗?