Example usage for android.bluetooth BluetoothDevicePicker ACTION_LAUNCH

List of usage examples for android.bluetooth BluetoothDevicePicker ACTION_LAUNCH

Introduction

In this page you can find the example usage for android.bluetooth BluetoothDevicePicker ACTION_LAUNCH.

Prototype

String ACTION_LAUNCH

To view the source code for android.bluetooth BluetoothDevicePicker ACTION_LAUNCH.

Click Source Link

Document

Broadcast when someone want to select one BT device from devices list.

Usage

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

void launchDevicePicker() {
    IntentFilter filter = new IntentFilter();
    filter.addAction(BluetoothDevicePicker.ACTION_DEVICE_SELECTED);
    getContext().registerReceiver(mPickerReceiver, filter);

    Intent intent = new Intent(BluetoothDevicePicker.ACTION_LAUNCH);
    intent.setFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
    getContext().startActivity(intent);/*from   www .  j av a 2  s  . co m*/
}