1
如何在使用有线耳机时禁用平板电脑上的HDMI音频输出。 我会尝试使用有线耳机时在平板电脑上禁用HDMI音频
mgr = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
mgr.setWiredHeadsetOn(true);
和
mgr = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
mgr.setParameters("audio_devices_out_active=AUDIO_CODEC");
它没有工作:“(