In my Android application, the client gets to explicitly choose the sound yield between inside speakers and headphone. Here is my daily practice to turn the speaker telephone on:
[code]static void useSpeaker(Context ctx) {
AudioManager am = (AudioManager)ctx.getSystemService(Context.AUDIO_SERVICE);
am.setMode(AudioManager.MODE_NORMAL);
am.setSpeakerphoneOn(true);
}[/code]
When the sound is set to speakers, regardless of whether you plug in the headphone, the yield still experiences the speaker. I have checked on various tablets and telephones that this rationale works.
Notwithstanding, on one gadget, when the headphone is connected, the sound yield naturally changes from speakers to headphone.
I am thinking about whether there is something different that I have to deal with in the code. Or then again, is it simply this gadget disregarding my order? Respects.
[code]static void useSpeaker(Context ctx) {
AudioManager am = (AudioManager)ctx.getSystemService(Context.AUDIO_SERVICE);
am.setMode(AudioManager.MODE_NORMAL);
am.setSpeakerphoneOn(true);
}[/code]
When the sound is set to speakers, regardless of whether you plug in the headphone, the yield still experiences the speaker. I have checked on various tablets and telephones that this rationale works.
Notwithstanding, on one gadget, when the headphone is connected, the sound yield naturally changes from speakers to headphone.
I am thinking about whether there is something different that I have to deal with in the code. Or then again, is it simply this gadget disregarding my order? Respects.