O'Reilly logo

Android Things Projects by Francesco Azzola

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

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 ...

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