Book Image

Getting Started with UDOO

By : Maurizio Caporali, Emanuele Palazzetti
Book Image

Getting Started with UDOO

By: Maurizio Caporali, Emanuele Palazzetti

Overview of this book

Table of Contents (16 chapters)
Getting Started with UDOO
About the Author
About the Reviewers


In this chapter, you learned how to improve the quality of our prototypes when human interaction is required. We explored some of the common physical components that can be used to alter or control Android applications. Through powerful Android APIs, we built a web radio capable of complex tasks like network streaming.

In the first part, we built the required circuit using two potentiometers and a push button. When we checked returned values through the serial monitor, we saw that they are not so useful in this format, so we wrote a mapping and a normalization functions.

We continued providing a new layout for the Android application, but we avoided adding any kind of interaction through the user interface. We wrote a class to abstract all possible interactions with the built-in media player, so that we can easily control this component in any part of our application. Indeed, we used it within the background task, and every time it read user inputs, it immediately changed the state...