如何打开扬声器编程时来电收到附着在音频插孔耳机?
解决方案 audiomanager.setSpeakerphoneOn(真)
一定要包括在清单中的许可权
的权限。
How to turn on speaker programmatically when incoming calls received and headphone attached on audio jack?
解决方案audiomanager.setSpeakerphoneOn(true)
Be sure to include the MODIFY_AUDIO_SETTINGS
permission in your manifest.
下一篇:修改本机接触编程本机