Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Since build it is possible to swith to Bluetooth headset for audio input/output using Flashphoner.getAudioManager().setUseBluetoothSco() function call:

To switch to BT headset


To switch to other audio input/output device


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(;
        mAudioOutput.setOnItemChosenListener(new LabelledSpinner.OnItemChosenListener() {
            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":
                    case "bluetooth": Flashphoner.getAudioManager().setUseBluetoothSco(true); break;

            public void onNothingChosen(View labelledSpinner, AdapterView<?> adapterView) {

  • No labels