0

I am developing a simple android application for my job

There is a button that when clicked fires an ACTION_CALL intent to a series of phone numbers. the problem is, my phone is opening skype to try and make the call and I want it to use the built in native phone app. this is the code that runs the intent call:

Intent intent = new Intent(Intent.ACTION_CALL);

                intent.setData(Uri.parse("tel:989653523"));
                startActivity(intent);

I realize that "tel:" protocol can work for both Skype and the native Phone app but how can I make it so the app can always open it using the native phone app?

  • Refer to [this](https://stackoverflow.com/questions/8308666/how-to-force-share-intent-to-open-a-specific-app) post, look through the answers, the answer by Derzu looks interesting. – Suleyman Jun 04 '18 at 19:36
  • It could mean that Skype is set as your default calling app, have you tried to set back the native phone app to be the default – Flash Jun 21 '18 at 19:24

1 Answers1

0

Well, you need to make an explicit intent call.

Intent i=new Intent (this,theActivityYouWantToStart.class);
Dr4ke the b4dass
  • 1,184
  • 2
  • 17
  • 40