Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Getting started with Udoo
  • Toc
  • feedback
Getting started with Udoo

Getting started with Udoo

By : Emanuele Palazzetti
4.8 (4)
close
Getting started with Udoo

Getting started with Udoo

4.8 (4)
By: Emanuele Palazzetti

Overview of this book

If you are an Android developer who wants to learn how to use UDOO to build Android applications that are capable of interacting with their surrounding environment, then this book is ideal for you. Learning UDOO is the next great step to start building your first real-world prototypes powered by the Android operating system.
Table of Contents (10 chapters)
close
9
Index

Implementing voice recognition


Now that our prototype can handle different presets, we should provide a fast way to change, create, or edit user presets through voice recognition. One of the easiest ways to manage voice recognition is to use Android's Intent messaging object to delegate this action to another application component. As we discussed at the beginning of the chapter, if we install and configure a compliant voice input application, Android can use it for voice recognition.

The main goal is to provide an abstract class that will be extended by our activities in order to manage recognition callback, while avoiding code repetition. The overall design is as follows:

  • We should provide a common interface for activities that need voice recognition.

  • We should provide a startRecognition() method to launch the recognition activity through the Intent object.

  • We should implement the onActivityResult() callback that will be called by the launched activity when voice recognition ends. In this...

bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete