android 无法拨打固定号码

提问:
使用以下代码拨打 固定号码 无法直接进行拨号

        Intent intent = new Intent(Intent.ACTION_CALL);
        String uriString = "tel:" + Uri.encode(phoneNum.trim());
        Uri data = Uri.parse(uriString);
        Log.d(TAG, "callPhone: " +uriString );
        intent.setData(data);
        startActivity(intent);

但是使用系统的拨号盘拨打同一 固定号码 却可以进行呼叫;拨打固定号码时应该添加什么改动或特殊字段吗?

使用的手机为红米9A,Android11版本

尝试:phoneNum前面 加0 或者 加86 可以跳转到拨号界面,但是号码变成了无效号码

Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:" + phone));
我之前做的时候可以

  • 这篇博客: 个推消息推送Android版常见问题整理中的 9. 为什么应用已经启动了,收到通知后点击通知栏应用又二次启动了? 部分也许能够解决你的问题, 你可以仔细阅读以下内容或跳转源博客中阅读:
  • 请在安卓manifest配置文件里设置:android:launchMode="singleTop"

    或者通过服务端推送模板中设置:template.setTransmissionType(2)。