We will continue our Bluetooth Scanning application created in the previous section.
- Upon configuring the server, the app should list the advertising peripheral in the list:
- Since the activity is a ListView, we can implement onListItemClick() method to capture the clicks on the list of the Bluetooth devices:
@Override protected void onListItemClick(ListView l, View v, int position, long id) { final BluetoothDevice device = mLeDeviceListAdapter.getDevice(position); Toast.makeText(this, "Device: " +device.getName() + " and address: ...