Is it possible to detect if audio is playing from a source outside of the app?
1. Play a song on the device.
2. Launch app.
In the launched app is is possible to detect the music playing on the device?
You can do this by using SystemService as following:
AudioManager manager = (AudioManager)this.GetSystemService(Context.AudioService);
// do something - or do it not
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies