android 听筒播放声音

AudioManager audioTrack=(AudioManager) MainActivity.this.getSystemService(Context.AUDIO_SERVICE);
 audioTrack.setMode(AudioManager.MODE_IN_CALL);


    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"></uses-permission>

你可能感兴趣的:(android 听筒播放声音)