Book Image

Getting Started with UDOO

Book Image

Getting Started with UDOO

Overview of this book

Table of Contents (16 chapters)
Getting Started with UDOO
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Streaming audio from Android applications


The Android operating system provides a great collection of UI components, an important building block for all physical applications. All of them are specific for phone or tablet interaction and this is an outstanding improvement because users already know how to use them. However, Android isn't just a collection of UI components because it allows many APIs to achieve recurring tasks. In our case, we want a physical application that is capable of interacting with a web service to open and reproduce an audio stream.

Without the i.MX6 processor and the Android operating system, this task will never be easy to implement, but in our case, UDOO board provides all that we need.

Designing the Android user interface

From Android Studio, start a new application called WebRadio with Android API 19. During the bootstrap process, choose a Blank Activity named Radio.

Our first goal is to change the default layout in favor of a simple but fancy interface. The main...