2

I'm looking for a way to open the "default phone app dialog" in Marshmallow programmatically - I assume that I'm looking for the intent that should be called, something similar to android.provider.Telephony.Sms.Intents.ACTION_CHANGE_DEFAULT that I use to set my app as the default sms app.

Your help will be appreciated

4

1 回答 1

3

找到了解决方案 - TelecomManager与示例用法

Intent intent = new Intent(TelecomManager.ACTION_CHANGE_DEFAULT_DIALER);
intent.putExtra(TelecomManager.EXTRA_CHANGE_DEFAULT_DIALER_PACKAGE_NAME,
     getActivity().getPackageName());
startActivity(intent);
于 2015-11-11T18:07:25.387 回答