Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/218.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
防止Android上的呼叫转移弹出窗口_Android_Android Intent_Android Ndk - Fatal编程技术网

防止Android上的呼叫转移弹出窗口

防止Android上的呼叫转移弹出窗口,android,android-intent,android-ndk,Android,Android Intent,Android Ndk,以下代码通过intent发送呼叫转移命令 Intent intentCallForward = new Intent(Intent.ACTION_CALL); intentCallForward.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); Uri uri = Uri.fromParts("tel", "*21*001234567890#", "#"); intentCallForward.setData(uri);

以下代码通过intent发送呼叫转移命令

Intent intentCallForward = new Intent(Intent.ACTION_CALL);
intentCallForward.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
Uri uri = Uri.fromParts("tel", "*21*001234567890#", "#");
intentCallForward.setData(uri);                                
startActivity(intentCallForward);
这段代码的问题是它显示了一个有点奇怪的弹出窗口,有没有办法防止这种情况发生?也许通过NDK或类似的方式

提前谢谢


意图调用手机的手机活动。它是您弹出窗口的来源

这就是为什么您不能更改或禁用它

如果这真的让你感到困扰,你可以在你的应用程序中加入一些其他的通话活动,并在内部执行通话(不是通过意图),但我不确定这样的事情是否可能发生,而且这肯定是不值得的