Suppose I have a MediaPlayer class object which is playing some music. Now I want to change the music to play either from device's internal speaker or already plugged in earphone.
Let's say just by tapping a button. Is that possible?
Suppose I have a MediaPlayer class object which is playing some music. Now I want to change the music to play either from device's internal speaker or already plugged in earphone.
Let's say just by tapping a button. Is that possible?
I can't comment becuase I don't have enough reputation, so I'll post it.
Just do a small quick search: Switching between earpiece and speaker