How can I direct the audio output to the speakers, with plugged in headphones, correctly? Mp.setAudioStreamType(AudioManager.STREAM_RING) īut the audio is still played through the plugged in headphones. MediaPlayer mp = MediaPlayer.create(mainActivity, R.raw.chime) MainActivity.java: AudioManager audioManager = (AudioManager)mainActivity I want to play an audio file through speakers with plugged-in headset.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |