I am developing a media app.
If a user plays a song with the native android application for playing a song and then opens my application then i want to stop playing that song in background before user opens my application. At present both songs are being played at a time.
I am developing a media app. If a user plays a song with the
Share
You do not “stop playing that song in background before user opens my application”. You request the audio focus using
AudioManager.