Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting started with Udoo

You're reading from   Getting started with Udoo Become an efficient maker by designing and building amazing prototypes with the UDOO platform and Android

Arrow left icon
Product type Paperback
Published in Feb 2015
Publisher
ISBN-13 9781784391942
Length 206 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Emanuele Palazzetti Emanuele Palazzetti
Author Profile Icon Emanuele Palazzetti
Emanuele Palazzetti
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Improving user settings


Before we proceed with our implementation of the voice recognition service, we need to change how settings are stored in our physical application. At the moment, we're using the Chronotherm application's shared preferences in which we store the chosen setpoint for each SeekBar class. According to new requirements, this is no longer suitable for our application because we need to persist different setpoints for each preset. Moreover, we need to persist the current activated preset and all these changes force us to design a new user interface together with a new settings system.

We can take a look at the following screenshot to find what changes we should take:

The first required step is to update our user interface. Following the suggestion in the above mock-up, we should:

  1. Add a new TextView at the top of the layout that shows the name of the current preset. The name should be changed while loading the activity and whenever the user activates a new preset.

To achieve the...

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 $19.99/month. Cancel anytime
Banner background image