E
E
enchikiben2013-11-24 12:57:59
Android
enchikiben, 2013-11-24 12:57:59

How to play sound in handset speaker of android phone?

Good afternoon, tell me how in android you can play a file in the phone's dynamics? Not in the big speaker at the back, but in the speaker where the caller's voice is usually? (I don't know what it's called).
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
volalexy, 2013-11-26
@EnChikiben

To play sound through the phone speaker, you need to put the audio into ring mode.
This is done using the setMode method in the AudioManager.
PS: You may need to turn on the speaker
audioManager.setSpeakerphoneOn(true);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question