How to stop other app's music play in the background when my game is launched and playing?

Like building music streaming app, when the app’s music is playing, we have to stop other app’s music currently playing in background automatically. It’s Android’s requirements, so call “Audio focus”.

Documents:
https://developer.android.com/training/managing-audio/audio-focus.html

My app is facing this issue. So is there any other method to solve this issue?