Example usage for android.bluetooth BluetoothProfile HEADSET_CLIENT

List of usage examples for android.bluetooth BluetoothProfile HEADSET_CLIENT

Introduction

In this page you can find the example usage for android.bluetooth BluetoothProfile HEADSET_CLIENT.

Prototype

int HEADSET_CLIENT

To view the source code for android.bluetooth BluetoothProfile HEADSET_CLIENT.

Click Source Link

Document

Headset Client - HFP HF Role

Usage

From source file:com.google.android.car.kitchensink.bluetooth.BluetoothHeadsetFragment.java

@Override
public void onResume() {
    super.onResume();
    mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
    mBluetoothAdapter.getProfileProxy(getContext(), new ProfileServiceListener(),
            BluetoothProfile.HEADSET_CLIENT);
}