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