Creating the Android app

In this step, as stated before, we have to create an Android app that connects to the Android Things board using a Bluetooth connection. There are several ways we can implement the app. Firstly, we could exploit the Android Bluetooth API (https://developer.android.com/guide/topics/connectivity/bluetooth.html) or we can use an open source library that does the heavy work. The use of the Android Bluetooth API is out of the scope of this book, as we are interested in understanding how Android and Android Things can exchange data. For this purpose, then, we will use a simple Android Bluetooth library that helps us to develop the client and server side easily.

There are several open source libraries available; in this ...

Get Android Things Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.