Specify which app respond to intent startActivity call

78 Views Asked by At

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?

1

There are 1 best solutions below

5
On

Well, you need to make an explicit intent call.

Intent i=new Intent (this,theActivityYouWantToStart.class);