A list of paired devices can be obtained by invoking the getBondedDevices() method, which returns a set of BluetoothDevice objects. We invoke the getBondedDevices() method in the DeviceListFragment ‘s onCreate() method.
Read moreWhat is Bluetooth library?
Android Bluetooth Helper Library allows you to access the Bluetooth of your mobile device, manage turn-on/off, and discover bluetooth devices around you .
Read moreHow do I turn on permissions on Android?
Change app permissions
Read more