Regd:支持Android Nougat中的接听电话 [英] Regd : Support of Answer call in Android Nougat

查看:114
本文介绍了Regd:支持Android Nougat中的接听电话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Android Nougat中实现接听电话功能.Google Nexus 5x不支持接听电话.

I want to implement Answer call functionality in Android Nougat. The answer call is not supported in Google Nexus 5x.

我们尝试使用代码

Runtime.getRuntime().exec("input keyevent " + Integer.toString(KeyEvent.KEYCODE_HEADSETHOOK));

使用上述代码,在Google Nexus 6中支持接听电话.

The answer call is supported in Google Nexus 6 using the above code.

有人从事过上述工作吗?

Has anyone worked on the above?

谢谢!

推荐答案

从2016年11月开始,在高于5.0的许多设备上添加了一个安全补丁程序作为更新,并在使用11月或以后的更新更新了设备后,停止此运行时方法正常工作.

There is a security patch that is added as an update on many devices above 5.0 from November 2016 onwards, after updating the devices with this November or later updates, will stop this Runtime method to work.

这篇关于Regd:支持Android Nougat中的接听电话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆