Since build 1.1.0.19 it is possible to swith to Bluetooth headset for audio input/output using Flashphoner.getAudioManager().setUseBluetoothSco() function call:
To switch to BT headset
Flashphoner.getAudioManager().setUseBluetoothSco(true);
To switch to other audio input/output device
Flashphoner.getAudioManager().setUseBluetoothSco(false);
The usage example. Please note that it is necessary to disable speakerphone and BT headset usage to switch to phone voice speaker or to wired headset.
mAudioOutput = (LabelledSpinner) findViewById(R.id.audio_output); mAudioOutput.setOnItemChosenListener(new LabelledSpinner.OnItemChosenListener() { @Override public void onItemChosen(View labelledSpinner, AdapterView<?> adapterView, View itemView, int position, long id) { String audioType = getResources().getStringArray(R.array.audio_output)[position]; switch (audioType) { case "speakerphone": Flashphoner.getAudioManager().setUseSpeakerPhone(true); break; case "phone": Flashphoner.getAudioManager().setUseBluetoothSco(false); Flashphoner.getAudioManager().setUseSpeakerPhone(false); break; case "bluetooth": Flashphoner.getAudioManager().setUseBluetoothSco(true); break; } } @Override public void onNothingChosen(View labelledSpinner, AdapterView<?> adapterView) { } });