问题描述
我正在尝试使用 Intent 发起呼叫操作,但获得了
No Activity found to handle Intent { act=android.intent.action.CALL dat=tel:xxxxxxxxxxxxx flg=0x10000000 }
Google Pixel 崩溃。它适用于所有其他设备。 我使用的代码是
public static void call(String phone,@NonNull Context context) {
Intent callIntent = new Intent(Intent.ACTION_CALL)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
callIntent.setData(Uri.parse("tel:" + phone));
context.startActivity(callIntent);
}
还有其他人面临类似的问题吗?有什么解决办法吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)