Is there a way in Android to programmatically get the default speaker or microphone or any peripheral

Viewed 124

Let's say I have connected multiple external speakers and also if the device has inbuilt speakers. How do I get the information on which speaker is the default one. Any help is appreciated.

1 Answers
Related