android – Intent.ACTION_ Call starts a Skype call instead of a “normal” call

I have the following code, and I launch it from the dialog fragment button:

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

This code is not to make an ordinary call, but to start making a Skype call. How to provide users with the option to choose between an ordinary call and a Skype call. Thank you @ h_ 404_ 10@

resolvent:

In fact, I missed the license:

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

After adding this permission to the list, I can choose between normal and Skype calls. Thank you

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>