I am working on a Android media player application (Android ver 2.3 - 4.1 to be supported). I want to detect audio path transitions, like speaker to wired-headset or wired-headset to BT etc. I need to take some action in my app on these transitions. So is there any single way (preferably broadcast-receiver) which Android provides when switching audio-paths? If possible I want to avoid detecting wired-headset and BT-headset connect/disconnect separately.
I am still adapting to Android and hoping for some help here.
Thanks in advance.