Book Image

Android Things Projects

By : Azzola
Book Image

Android Things Projects

By: 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

Streaming data to the IoT cloud platform


Once we know what an IoT cloud platform is and the reference architecture, we can implement an Android Things app that streams real-time data to the cloud. Generally speaking, to use an IoT cloud platform we have to follow these steps:

  1. Configure the IoT project on the cloud platform providing all the information including the type of the data we want to manage.
  2. Create an IoT platform client on the client side (Android Things app) that handles the connection and sends the data.

In this Android Things IoT project, we will use Samsung Artik Cloud (https://artik.cloud/) as the IoT cloud platform,. This is a professional platform that provides almost all the services described in the previous paragraphs. Moreover, it is easy to use and it provides several SDKs that simplify the data exchange process. In this project, we will manually implement the data exchange between the Android Things board and Samsung Artik Cloud so that we can learn all the steps to...