Relative Content

Tag Archive for androidkotlinbluetooth-lowenergyforeground-service

Does it make sense to check for nullity of an Application instance in a foreground service?

I use BleApp : Application() to store BluetoohDevice, BluetoothGattCharacteristic and some state booleans. I access all of these properties from my foreground service BleService and from activities. The BleService should be responsible for sending a Bluetooth Low Energy (BLE) message to a BLE peripheral (LED display) each time it receives a BLE message from a smartwatch.