Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Getting started with Udoo

You're reading from  Getting started with Udoo

Product type Book
Published in Feb 2015
Publisher
ISBN-13 9781784391942
Pages 206 pages
Edition 1st Edition
Languages

Summary


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

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}