5

For Android Api level 23, you can use AudioRecord.setPreferredDevice();

And you can also use:

AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);

if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {
    AudioDeviceInfo[] adi = audioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS);
}

But is it possible to get a list of your microphones, on a API level lower than 23? (I need it for 17).

rosu alin
  • 5,674
  • 11
  • 69
  • 150

0 Answers0