Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intent.ACTION_CALL starts a skype call instead a "normal" phone call

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));

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

like image 403
user1796624 Avatar asked Nov 27 '22 21:11

user1796624


1 Answers

actually, i was missing the permission:

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

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

like image 97
user1796624 Avatar answered Dec 15 '22 22:12

user1796624