Android: How To Show A List Of Dialer App Installed On My Device Instead Of Directly Calling Default Dialer
Android: How to show a list of dialer app installed on my device instead of directly calling default dialer Intent intent = new Intent(Intent.ACTION_CALL); startActivity(intent);
Solution 1:
You can not show list of dialer while using ACTION_CALL intent.
You need a special permission because the ACTION_CALL is a protected action, allow you to call a phone number directly, with no interaction from the user.
You can make Intent chooser for ACTION_DIAL intent which allows you to show list of apps which has dialer. You can use this code.
finalIntentintent=newIntent();
intent.setAction(Intent.ACTION_DIAL);
intent.setData(Uri.fromParts("tel", "123456", null));
startActivity(Intent.createChooser(intent, ""), REQUEST_CODE));
I hope it helps!
Post a Comment for "Android: How To Show A List Of Dialer App Installed On My Device Instead Of Directly Calling Default Dialer"