Example usage for android.os UserHandle CURRENT

List of usage examples for android.os UserHandle CURRENT

Introduction

In this page you can find the example usage for android.os UserHandle CURRENT.

Prototype

UserHandle CURRENT

To view the source code for android.os UserHandle CURRENT.

Click Source Link

Usage

From source file:com.android.nfc.beam.BeamTransferManager.java

void whitelistOppDevice(BluetoothDevice device) {
    if (DBG)/*from ww w.j  a v  a  2  s . c om*/
        Log.d(TAG, "Whitelisting " + device + " for BT OPP");
    Intent intent = new Intent(ACTION_WHITELIST_DEVICE);
    intent.setPackage(BLUETOOTH_PACKAGE);
    intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device);
    mContext.sendBroadcastAsUser(intent, UserHandle.CURRENT);
}