Intent.ACTION_CALL启动Skype通话,而不是一个"正常"电话 [英] Intent.ACTION_CALL starts a skype call instead a "normal" phone call

查看:258
本文介绍了Intent.ACTION_CALL启动Skype通话,而不是一个"正常"电话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有如下因素code和IM从对话框片段按钮启动它:

I have the folowing code and im starting it from a dialog fragment button:

 uri = "tel:"+ServerDialogCallUs.this.contents.getString("phone_number");
 Intent intent = new Intent(Intent.ACTION_CALL);
 intent.setData(Uri.parse(uri));

而不是让一个正常的电话本code开头Skype通话。我怎样才能给用户正常通话和Skype电话之间进行选择的选项。
谢谢

Instead of making a normal phone call this code starts a skype call. How can I give the user the option to chose between the normal call and a skype call. Thanks

推荐答案

其实,我缺少的权限:

 <uses-permission android:name="android.permission.CALL_PHONE" />

添加此权限我一个正常和Skype通话之间可以选择清单后。
谢谢

after adding this permission to the manifest I can chose between a normal and a skype call. Thanks

这篇关于Intent.ACTION_CALL启动Skype通话,而不是一个&QUOT;正常&QUOT;电话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆