AudioSource.VOICE_CALL 在 android 4.0 中不工作,但在 android 2.3 中工作 [英] AudioSource.VOICE_CALL not working in android 4.0 but working in android 2.3

查看:34
本文介绍了AudioSource.VOICE_CALL 在 android 4.0 中不工作,但在 android 2.3 中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

VOICE_CALL, VOICE_DOWNLINK ,VOICE_UPLINK  

不在android 4.0上工作,但在android 2.3(实际设备)上工作,我上传了一个虚拟项目来记录所有拨出电话,以便您可以自己查看

not working on android 4.0 but working on android 2.3 (Actual Device),I have uploaded a dummy project to record all outgoing call so that you can see it for your self

http://www.mediafire.com/?img6dg5y9ri5c7rrtcajwc5ycgpo2nf

您只需在 TService.java<中的第 118 行将 audioSource = MediaRecorder.AudioSource.MIC; 更改为 audioSource = MediaRecorder.AudioSource.VOICE_CALL;/代码>

you just have to change audioSource = MediaRecorder.AudioSource.MIC; to audioSource = MediaRecorder.AudioSource.VOICE_CALL; on line 118 in TService.java

如果您遇到任何错误,请告诉我.任何与之相关的建议都将被接受.

If you come across any error, tell me. Any suggestion related to it will be accepted.

推荐答案

经过大量搜索,我发现有些制造商关闭了该功能的访问权限,因为某些国家/地区不允许通话录音.如果有人发现这样的问题并以其他方式获得解决方案,然后将其张贴在这里,这可能对许多人有帮助,因为很多人都有同样的问题.

After a lot of search I Found that Some Manufactures have closed the access to such function because call recording is not allowed in some countries. If anyone finds such question and get the solution some other way then post it over here it may be helpful to many because many people are have the same issue.

这篇关于AudioSource.VOICE_CALL 在 android 4.0 中不工作,但在 android 2.3 中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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