I'm not a programmer so it might be a lot harder than I think, but doesn't android have a specific api to hook into to be able to read whether or not music, e.g. Spotify, is already playing? It would be nice to have the app detect music and mute either all sound or just the music.