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

How to develop an Android Things app UI

When it comes the time to develop our first Android Things UI we have to keep in mind that Android Things is a modified version of Android OS. Therefore, we can apply our Android expertise to build the UI. Just to recap briefly, the main steps to follow when developing a user interface are:

  1. Create an XML file that holds the interface description:
    1. Define the layout.
    2. Add the widgets to the layout.
  2. Attach the interface to the Activity that will handle it.
  3. Handle the widget events triggered when the user interacts with them.

Before digging into the code details about the user interface, it is useful to have an idea of how the interface should look. The interface is quite simple and there are:

  • Three ...

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