How to add audio device action sheet to your android app

audio device menu

Previously, we introduced How to add audio device action sheet to your iOS app, I believe there is the same need for android app. So here we go again.

Similar to iOS devices, there are 3 typical audio routes: DEFAULT, SPEAKER, BLUETOOTH.

The DEFAULT route is the handset and will become wired headset if there is a plugged one.