O'Reilly logo

Building Bluetooth Low Energy Systems by Muhammad Usama bin Aftab

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Writing central-side Android apps

We will continue our Bluetooth Scanning application created in the previous section.

  1. Upon configuring the server, the app should list the advertising peripheral in the list:
Scanner App is showing the configured server with the MAC C0:E9:DE:07:AE:AE
  1. 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: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required