Book Image

Android Things Projects

By : Francesco Azzola
Book Image

Android Things Projects

By: Francesco Azzola

Overview of this book

Android Things makes developing connected embedded devices easy by providing the same Android development tools, best-in-class Android framework, and Google APIs that make developers successful on mobile. With this book, you will be able to take advantage of the new Android framework APIs to securely build projects using low-level components such as sensors, resistors, capacitors, and display controllers. This book will teach you all you need to know about working with Android Things through practical projects based on home automation, robotics, IoT, and so on. We’ll teach you to make the most of the Android Things and build enticing projects such as a smart greenhouse that controls the climate and environment automatically. You’ll also create an alarm system, integrate Android Things with IoT cloud platforms, and more. By the end of this book, you will know everything about Android Things, and you’ll have built some very cool projects using the latest technology that is driving the adoption of IoT. You will also have primed your mindset so that you can use your knowledge for profitable, practical projects.
Table of Contents (15 chapters)
Title Page
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface

Architecture to connect Android and Android Things


In this paragraph, we will discover how we can integrate Android and Android Things. Nowadays, there are several market products that have a mobile companion app to interact with smart systems. Here are a few of them that we can remember:

  1. Remote controlled smart light systems.
  2. Alarm systems.
  3. Remote controlled appliances.

Therefore, it is important to describe how we can integrate the smartphones ecosystems with Android Things. This section focuses its attention on Android smartphones but you can reuse the same strategies when integrating iOS apps with Android Things.

Generally speaking, there are three different scenarios:

  1. A smartphone controls a smart object (like the Android Things board) (master- slave pattern).
  2. A smartphone receives data stream through the Android Things board.
  3. A smartphone receives notifications from the Android Things system when an event occurs.

We covered the last point in Chapter 2, Creating an Alarm System Using Android...