I need play some audio through internal speaker.
audioManager.setMode(AudioManager.MODE_IN_CALL);
audioManager.setSpeakerphoneOn(true);
My problem - when i do this, if another app play audio, he start playing too through internal speaker. How i can avoid it?
I read this topic: How to stop other apps playing music from my current activity? but in my case i want force closing any audio playing.