Working With Bluetooth

Enabling Bluetooth First thing we need to work with Bluetooth is Bluetooth Adapter which allows us to work with Bluetooth, the same way we use Location Manager to work with Locations. Set the Bluetooth Adapter variable in ┬áthe MainActivity class and let’s call it BA, as follows: BluetoothAdapter BA; Next we have to check whether…