检测付费或免费电话(以编程方式)

时间:2016-08-14 20:45:34

标签: android phone-call

当我们拨打费用号码时,会话会开始并显示。当我们拨打客户服务号码(我们的电话公司),或者我们没有账号电话时,会话时间没有开始,也没有显示。

我这么称呼:

Intent intent1 = new Intent(Intent.ACTION_CALL);
intent1.setData(Uri.parse("tel:" + phone));
intent1.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent1.addFlags(Intent.FLAG_FROM_BACKGROUND);
startActivity(intent1);

0 个答案:

没有答案
相关问题