Android 内置google dialer后发现拨号后,没有通话界面显示。

现象

最近有客户要求去掉android原生的dialer应用,使用GoogleDialer来代替。
内置后发现,拨打电话后和来电后,通话界面就是不显示出来。

解决

后来发现:需要修改系统的默认的拨号等配置
packages\services\Telecomm\res\values\config.xml

    <!-- Determines if the current device should allow emergency numbers to be logged in the
         call log. Some carriers require that emergency calls *not* be logged, presumably to
         avoid the risk of accidental redialing from the call log UI.
         The default is false. -->
    <bool name="allow_emergency_numbers_in_call_log">false</bool>

    <!-- Determine whether we want to play local DTMF tones in a call, or just let the radio/BP
         handle playing of the tones. -->
    <bool name="allow_local_dtmf_tones">true</bool>

    <!-- Package name for the default in-call UI and dialer [DO NOT TRANSLATE] -->
    <string name="ui_default_package" translatable="false">com.google.android.dialer</string>

    <!-- Class name for the default in-call UI Service [DO NOT TRANSLATE] -->
    <string name="incall_default_class" translatable="false">com.android.incallui.InCallServiceImpl</string>

    <!-- Class name for the default main dialer activity [DO NOT TRANSLATE] -->
    <string name="dialer_default_class" translatable="false">com.android.dialer.DialtactsActivity</string>

    <!-- Flag indicating if the tty is enabled -->
    <bool name="tty_enabled">false</bool>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值