I need to play a sound with the phone speaker even if the earphones are plugged in.
Currently I'm using the SoundPool Play function, but sound get played into the earphones, when the connector is plugged in.
I've found this thread
but it seems to deal with actual phone calls, since it sets the MODE_IN_CALL parameter.
My use case is about playing sounds with no calls ongoing.
Currently I'm using the SoundPool Play function, but sound get played into the earphones, when the connector is plugged in.
I've found this thread
media player (and text to speech) output to phone ear speaker instead of loudspeaker
hello, i need to improve my program, a sort of to-do-list since now, my prog does this: plays ringtone to the loudspeaker through media player and the fake green and red buttons are used to redirect the user to other app pages. the user must read. now, i want the user to answer the fake...
www.b4x.com
My use case is about playing sounds with no calls ongoing.