Code example for BluetoothAdapter

Methods: closeProfileProxy

            // 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"}) 
        public void onReceive(Context context, Intent intent) 
Stop searching for code, let great code find you!  Add Codota to your java IDE