Code example for BluetoothHeadset

Methods: stopVoiceRecognition

        if (mBluetoothHeadset != null)
            // Need to call stopVoiceRecognition here when the app 
            // change orientation or close with headset still turns on. 
            mBluetoothAdapter.closeProfileProxy(BluetoothProfile.HEADSET, mBluetoothHeadset);
            mBluetoothHeadset = null;
     * Broadcast receiver for API < 11 
     * Handle headset and Sco audio connection states. 
    private BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver()
        @SuppressWarnings({"deprecation", "synthetic-access"}) 
Stop searching for code, let great code find you!  Add Codota to your java IDE