Slide 12
Slide 12 text
connectedDevice
Foreground Service Types
• When interacting with an external device through Bluetooth, NFC, USB or network
connection
• Runtime prerequisites (at least one of the following):
• Declare one of the permissions in manifest:
• CHANGE_NETWORK_STATE, CHANGE_WIFI_STATE,
CHANGE_WIFI_MULTICAST_STATE, NFC, TRANSMIT_IR
• One of the runtime permissions:
• BLUETOOTH_CONNECT, BLUETOOTH_ADVERTISE, BLUETOOTH_SCAN, UWB_RANGING
• Call UsbManager.requestPermission()