如何通过为用户提供将其设置为默认应用程序的选项,从而使其成为设备上的应用程序默认电话或助手处理程序 [英] How to make an application default phone or Assistant handler on the device by giving user an option to make it default app

查看:347
本文介绍了如何通过为用户提供将其设置为默认应用程序的选项,从而使其成为设备上的应用程序默认电话或助手处理程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已从playStore收到以下政策通知:

We have received a policy notice from playStore as:

您的应用清单请求呼叫日志"权限组(例如READ_CALL_LOG,WRITE_CALL_LOG,PROCESS_OUTGOING_CALLS)
必须在设备上主动将其注册为默认的Phone或Assistant处理程序.

Your app manifest requests the Call Log permission group (e.g. READ_CALL_LOG, WRITE_CALL_LOG, PROCESS_OUTGOING_CALLS)
It must be actively registered as the default Phone or Assistant handler on the device.

我无法理解设备上的助手处理程序. 任何意见或建议都欢迎.

I am not able to understand what Assistant handler on the device. Any inputs or suggestions are most welcome.

Android应用程序满足要求的最低要求是什么.

what are the minimum requirements by the android application to fullfil the requirement.

推荐答案

在以下位置查看文档: https://developer.android.com/reference/android/telecom/TelecomManager# ACTION_CHANGE_DEFAULT_DIALER

Check the documentation at: https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_CHANGE_DEFAULT_DIALER

示例代码:

Intent intent = new Intent(TelecomManager.ACTION_CHANGE_DEFAULT_DIALER);
intent.putExtra(TelecomManager.EXTRA_CHANGE_DEFAULT_DIALER_PACKAGE_NAME, getActivity().getPackageName());
startActivity(intent);

这篇关于如何通过为用户提供将其设置为默认应用程序的选项,从而使其成为设备上的应用程序默认电话或助手处理程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆