Audio stream stays on earpiece after using AudioManager
问题 After I use the Android AudioManager to set SCO ON and speakerphone ON, then I return it back to where it started, the media stream will then stay on earpiece instead of the phones speaker. Here is where I make the changes to route a stream through the SCO speakerphone (which all works great) if (am2.isBluetoothScoAvailableOffCall()) { am2.startBluetoothSco(); } if(!am2.isSpeakerphoneOn()){ speakerPhoneWasOn = false; am2.setSpeakerphoneOn(true); } myHash.put(TextToSpeech.Engine.KEY_PARAM